Skip to content

Commit

Permalink
fix: fix unexpected CSS overwriting on button element
Browse files Browse the repository at this point in the history
Fixes: gpbl#2377
  • Loading branch information
hsnaydd committed Aug 21, 2024
1 parent e44717d commit 918d39e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 36 deletions.
31 changes: 13 additions & 18 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,6 @@
box-sizing: border-box;
}

/* Reset buttons */
.rdp-root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
}

.rdp-day {
width: var(--rdp-day-width);
height: var(--rdp-day-height);
Expand All @@ -92,6 +81,12 @@
}

.rdp-day_button {
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
justify-content: center;
align-items: center;
display: flex;
Expand Down Expand Up @@ -119,20 +114,20 @@

.rdp-button_next,
.rdp-button_previous {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
-moz-appearance: none;
-webkit-appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
position: relative;
font: inherit;
appearance: none;
background: none;
border: 0;
color: inherit;
cursor: pointer;

width: var(--rdp-nav_button-width);
height: var(--rdp-nav_button-height);
Expand Down
31 changes: 13 additions & 18 deletions src/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,6 @@
box-sizing: border-box;
}

/* Reset buttons */
.root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
}

.day {
width: var(--rdp-day-width);
height: var(--rdp-day-height);
Expand All @@ -92,6 +81,12 @@
}

.day_button {
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
justify-content: center;
align-items: center;
display: flex;
Expand Down Expand Up @@ -119,20 +114,20 @@

.button_next,
.button_previous {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
-moz-appearance: none;
-webkit-appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
position: relative;
font: inherit;
appearance: none;
background: none;
border: 0;
color: inherit;
cursor: pointer;

width: var(--rdp-nav_button-width);
height: var(--rdp-nav_button-height);
Expand Down

0 comments on commit 918d39e

Please sign in to comment.