Skip to content

Commit 8ef188b

Browse files
committed
fix: add focus outline to dropdown select
1 parent c7131de commit 8ef188b

2 files changed

Lines changed: 2 additions & 36 deletions

File tree

src/style.css

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,10 @@
180180
margin: 0;
181181
padding: 0;
182182
cursor: inherit;
183-
opacity: 0;
183+
color: transparent;
184184
border: none;
185185
background-color: transparent;
186186
line-height: inherit;
187-
/* font: 1rem; */
188-
}
189-
190-
.rdp-dropdown[disabled] {
191187
}
192188

193189
.rdp-dropdown_root {
@@ -196,14 +192,6 @@
196192
align-items: center;
197193
}
198194

199-
.rdp-dropdown_root::after {
200-
position: absolute;
201-
inset-block-start: 50%;
202-
inset-inline-end: 5px;
203-
transform: translateY(-50%);
204-
pointer-events: none;
205-
}
206-
207195
.rdp-month_caption {
208196
display: flex;
209197
align-content: center;
@@ -333,8 +321,3 @@
333321
.rdp-focusable {
334322
cursor: pointer;
335323
}
336-
337-
.rdp-day_button:focus-visible {
338-
/* outline: 2px solid var(--rdp-accent-color); */
339-
/* You may want to add focus-outlines here. */
340-
}

src/style.module.css

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,10 @@
180180
margin: 0;
181181
padding: 0;
182182
cursor: inherit;
183-
opacity: 0;
183+
color: transparent;
184184
border: none;
185185
background-color: transparent;
186186
line-height: inherit;
187-
/* font: 1rem; */
188-
}
189-
190-
.dropdown[disabled] {
191187
}
192188

193189
.dropdown_root {
@@ -196,14 +192,6 @@
196192
align-items: center;
197193
}
198194

199-
.dropdown_root::after {
200-
position: absolute;
201-
inset-block-start: 50%;
202-
inset-inline-end: 5px;
203-
transform: translateY(-50%);
204-
pointer-events: none;
205-
}
206-
207195
.month_caption {
208196
display: flex;
209197
align-content: center;
@@ -333,8 +321,3 @@
333321
.focusable {
334322
cursor: pointer;
335323
}
336-
337-
.day_button:focus-visible {
338-
/* outline: 2px solid var(--rdp-accent-color); */
339-
/* You may want to add focus-outlines here. */
340-
}

0 commit comments

Comments
 (0)