Fix focus ring in <wa-scroller>, <wa-dialog>, and <wa-drawer> (#1525)

* visible focus outlines for scrollable containers

* add changelog
This commit is contained in:
Lindsay M
2025-09-30 18:09:58 -04:00
committed by GitHub
parent 0b5689de62
commit 1fd68dfb3c
4 changed files with 19 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ Components with the <wa-badge variant="warning">Experimental</wa-badge> badge sh
- Added the Kazakh translation [pr:1496]
- Fixed a bug in `<wa-button>` where slotted badges weren't properly positioned in buttons with an `href` [issue:1377]
- Fixed focus outline styles in `<wa-details>` and native `<details>` [issue:1456]
- Fixed focus outline styles in `<wa-scroller>`, `<wa-dialog>`, and `<wa-drawer>` [issue:1484]
## 3.0.0-beta.6

View File

@@ -111,6 +111,15 @@
padding: var(--spacing);
overflow: auto;
-webkit-overflow-scrolling: touch;
&:focus {
outline: none;
}
&:focus-visible {
outline: var(--wa-focus-ring);
outline-offset: var(--wa-focus-ring-offset);
}
}
.footer {

View File

@@ -175,6 +175,15 @@
padding: var(--spacing);
overflow: auto;
-webkit-overflow-scrolling: touch;
&:focus {
outline: none;
}
&:focus-visible {
outline: var(--wa-focus-ring);
outline-offset: var(--wa-focus-ring-offset);
}
}
.footer {

View File

@@ -10,7 +10,6 @@
position: relative;
max-width: 100%;
isolation: isolate;
overflow: hidden;
}
:host([orientation='vertical']) {