Skip to content

[Accordion] Normalize focusVisible logic#22567

Merged
oliviertassinari merged 1 commit intomui:nextfrom
oliviertassinari:accordion-focus-visible
Sep 12, 2020
Merged

[Accordion] Normalize focusVisible logic#22567
oliviertassinari merged 1 commit intomui:nextfrom
oliviertassinari:accordion-focus-visible

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Sep 11, 2020

This approach is already used in: PaginationItem, Button, ListItem. Hopefully, it will avoid bugs and is more bundle size efficient

Breaking changes

  • [Accordion] Rename focused to focusVisible for consistency:

    <Accordion
      classes={{
    -   focused: 'custom-focus-visible-classname',
    +   focusVisible: 'custom-focus-visible-classname',
      }}
    />

Capture d’écran 2020-09-12 à 00 28 40

@oliviertassinari oliviertassinari added scope: accordion Changes related to the accordion. performance labels Sep 11, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 11, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 3080abf

@oliviertassinari oliviertassinari added the breaking change Introduces changes that are not backward compatible. label Sep 11, 2020
@oliviertassinari oliviertassinari merged commit 4b76942 into mui:next Sep 12, 2020
@oliviertassinari oliviertassinari deleted the accordion-focus-visible branch September 12, 2020 10:29
@oliviertassinari oliviertassinari added this to the v5 milestone Sep 15, 2020
@oliviertassinari oliviertassinari mentioned this pull request Sep 15, 2020
42 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. performance scope: accordion Changes related to the accordion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants