no roles on slots; fixes #1287

pull/1310/head
Cory LaViska 2023-04-13 12:52:03 -04:00
rodzic 902b08cc0f
commit cf89c901a2
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -22,6 +22,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Improved the behavior of `<sl-carousel>` when used inside a flex container [#1235](https://github.com/shoelace-style/shoelace/pull/1235)
- Improved the behavior of `<sl-tree-item>` to support buttons and other interactive elements [#1234](https://github.com/shoelace-style/shoelace/issues/1234)
- Improved the performance of `<sl-include>` to prevent an apparent memory leak in some browsers [#1284](https://github.com/shoelace-style/shoelace/pull/1284)
- Improved the accessibility of `<sl-select>`, `<sl-split-panel>`, and `<sl-details>` by ensuring slots don't have roles [#1287](https://github.com/shoelace-style/shoelace/issues/1287)
## 2.3.0

Wyświetl plik

@ -194,8 +194,8 @@ export default class SlDetails extends ShoelaceElement {
</span>
</div>
<div class="details__body">
<slot part="content" id="content" class="details__content" role="region" aria-labelledby="header"></slot>
<div class="details__body" role="region" aria-labelledby="header">
<slot part="content" id="content" class="details__content"></slot>
</div>
</div>
`;