Skip to content

Commit

Permalink
Add styles for aria-disabled="true"
Browse files Browse the repository at this point in the history
Ref #240 Add styles for ARIA attributes
  • Loading branch information
EvgenyOrekhov committed Feb 23, 2023
1 parent 38bb23b commit ead24c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/css/cursors.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ label > [type="radio"]:enabled {

/* stylelint-disable-next-line selector-max-specificity */
:disabled,
[aria-disabled="true"],
[type="checkbox"][id]:disabled + [for],
[type="radio"][id]:disabled + [for] {
cursor: not-allowed;
Expand Down
4 changes: 3 additions & 1 deletion src/css/themes/bulma.css
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ hr {

/* stylelint-disable-next-line selector-max-specificity */
:disabled,
[aria-disabled="true"],
[type="checkbox"][id]:disabled + [for],
[type="radio"][id]:disabled + [for] {
opacity: 0.5;
Expand All @@ -431,7 +432,8 @@ hr {
border-width: var(--border-width);
}

:disabled :disabled {
:disabled :disabled,
[aria-disabled="true"] [aria-disabled="true"] {
opacity: unset;
}

Expand Down

1 comment on commit ead24c0

@vercel
Copy link

@vercel vercel bot commented on ead24c0 Feb 23, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.