Skip to content

Commit 62919b3

Browse files
Use :focus instead of :focus-within
1 parent 058d77c commit 62919b3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Next
4+
- Use well-supported `:focus` instead of `:focus-within`
5+
36
## 2.0.0 - 2021 Feb 17
47
- **Breaking**: Allow DateInput/DatePicker value to be `null`
58
- **Breaking**: The value is now `null` by default

src/lib/DatePicker.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
box-shadow: 0px 2px 6px rgba(#000000,0.08), 0px 2px 6px rgba(#000000,0.11)
317317
outline: none
318318
transition: all 80ms cubic-bezier(0.4, 0.0, 0.2, 1)
319-
&:focus-visible
319+
&:focus
320320
border-color: var(--date-picker-highlight-border, #0269f7)
321321
box-shadow: 0px 0px 0px 2px var(--date-picker-highlight-shadow, rgba(#0269f7, 0.4))
322322
.tab-container

0 commit comments

Comments
 (0)