Skip to content

Commit

Permalink
fix: add focus outline to dropdown select
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jul 14, 2024
1 parent c7131de commit 8ef188b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
19 changes: 1 addition & 18 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,10 @@
margin: 0;
padding: 0;
cursor: inherit;
opacity: 0;
color: transparent;
border: none;
background-color: transparent;
line-height: inherit;
/* font: 1rem; */
}

.rdp-dropdown[disabled] {
}

.rdp-dropdown_root {
Expand All @@ -196,14 +192,6 @@
align-items: center;
}

.rdp-dropdown_root::after {
position: absolute;
inset-block-start: 50%;
inset-inline-end: 5px;
transform: translateY(-50%);
pointer-events: none;
}

.rdp-month_caption {
display: flex;
align-content: center;
Expand Down Expand Up @@ -333,8 +321,3 @@
.rdp-focusable {
cursor: pointer;
}

.rdp-day_button:focus-visible {
/* outline: 2px solid var(--rdp-accent-color); */
/* You may want to add focus-outlines here. */
}
19 changes: 1 addition & 18 deletions src/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,10 @@
margin: 0;
padding: 0;
cursor: inherit;
opacity: 0;
color: transparent;
border: none;
background-color: transparent;
line-height: inherit;
/* font: 1rem; */
}

.dropdown[disabled] {
}

.dropdown_root {
Expand All @@ -196,14 +192,6 @@
align-items: center;
}

.dropdown_root::after {
position: absolute;
inset-block-start: 50%;
inset-inline-end: 5px;
transform: translateY(-50%);
pointer-events: none;
}

.month_caption {
display: flex;
align-content: center;
Expand Down Expand Up @@ -333,8 +321,3 @@
.focusable {
cursor: pointer;
}

.day_button:focus-visible {
/* outline: 2px solid var(--rdp-accent-color); */
/* You may want to add focus-outlines here. */
}

0 comments on commit 8ef188b

Please sign in to comment.