Skip to content

fix: menu item disabled style wrongly applied #1760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

simotae14
Copy link
Contributor

What does it do?

Extends the CSS rule in the Menu.Item in case the aria-disabled attribute has just a true value, otherwise the disabled state is applied even if the menu item is not disabled

Why is it needed?

Otherwise for example when we use a NavLink in the Menu.Item the aria-disabled attribute is present even if it is false and with the old css rule the style is applied in both cases, true or false
An example in the CMS is this one
Schermata 2024-07-19 alle 15 55 29

How to test it?

link this branch to your version of the CMS by following these instructions https://github.com/strapi/design-system/blob/main/CONTRIBUTING.md#example-steps

Related issue(s)/PR(s)

fixes strapi/strapi#20774

@simotae14 simotae14 added pr: fix This PR is fixing a bug source: design-system relates to design-system package labels Jul 19, 2024
@simotae14 simotae14 self-assigned this Jul 19, 2024
Copy link

changeset-bot bot commented Jul 19, 2024

🦋 Changeset detected

Latest commit: 46ad573

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/design-system Patch
@strapi/icons Patch
@strapi/ui-primitives Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2024 1:56pm

Copy link
Contributor

@remidej remidej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't test locally but lgtm based on stack on this answer

@simotae14 simotae14 merged commit 6972656 into main Jul 19, 2024
11 checks passed
@simotae14 simotae14 deleted the fix/menu-item-wrong-disabled-style branch July 19, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix This PR is fixing a bug source: design-system relates to design-system package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Design] The pointer of the “Edit release” button in the edit view is the one of a disabled item but it’s not disabled
2 participants