fix(Accordion): implement css adjustments and native details#2363
fix(Accordion): implement css adjustments and native details#2363eirikbacker merged 32 commits intonextfrom
Conversation
|
|
Preview deployments for this pull request: 📖 Storybook 🖥 Storefront |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
Closes #2364 |
|
Preview deployments for this pull request: Theme |
|
Preview deployments for this pull request: Theme |
1 similar comment
|
Preview deployments for this pull request: Theme |
|
Preview deployments for this pull request: Theme |
- Fixes #2100 🥳 - Deprecates #2176, #2190 - Built on top of `<u-details>` for [better accessibility on mobile](https://u-elements.github.io/u-elements/elements/u-details#accessibility) - Removes `level` from `AccordionHeader` as this is not supported by native `<details>` - Removes `onHeaderClick` from `AccordionHeader` as this is identical to adding a `onClick` handler - JS-based animation can be removed and replaced by CSS when `calc-size(auto)` is fully supported 🚀 - Fixes shrinking chevron on mobile/zoom - Fixes text-align in AccordionHeader on mobile/zoom - Follows: #2295 - Also works in `dir="rtl"` Question: It is now implemented so search-in-page only works when using `defaultOpen`, as a controlled `open` should not be affected by user interaction. Just checking - does this make sense to you guys as well? :)
<details>inAccordion#2100 🥳<u-details>for better accessibility on mobilelevelfromAccordionHeaderas this is not supported by native<details>onHeaderClickfromAccordionHeaderas this is identical to adding aonClickhandlercalc-size(auto)is fully supported 🚀dir="rtl"Question: It is now implemented so search-in-page only works when using
defaultOpen, as a controlledopenshould not be affected by user interaction. Just checking - does this make sense to you guys as well? :)