Skip to content

Commit

Permalink
fix: fix unexpected CSS overwrites
Browse files Browse the repository at this point in the history
Fixes: #2377
  • Loading branch information
hsnaydd committed Aug 19, 2024
1 parent e44717d commit ec4aa2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

/* Reset buttons */
.rdp-root button {
.rdp-root :where(.rdp-day_button, .rdp-button_previous, .rdp-button_next) {
border: none;
background: none;
padding: 0;
Expand Down Expand Up @@ -124,15 +124,8 @@
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
9 changes: 1 addition & 8 deletions src/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

/* Reset buttons */
.root button {
.root :where(.day_button, .button_previous, .button_next) {
border: none;
background: none;
padding: 0;
Expand Down Expand Up @@ -124,15 +124,8 @@
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 ec4aa2a

Please sign in to comment.