Skip to content

Conversation

@pierry01
Copy link
Contributor

@pierry01 pierry01 commented May 7, 2025

Based on these articles from
developer.mozilla.org | kittygiraudel.com | dhiwise.com | a11y-101.com | dev.to

It's necessary to provide the support for users who want to use aria-disabled instead of disable

Comment on lines 27 to 31
DEFAULT_CLASSES,
DISABLED_CLASSES,
FOCUS_VISIBLE_CLASSES,
ARIA_SELECTED_CLASSES,
ARIA_DISABLED_CLASSES,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know that I could declare the constants and use them in BASE_CLASS, but I think in this way it is more maintainable

Copy link
Collaborator

Choose a reason for hiding this comment

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

I should be something like that

BASE_CLASSES = [
  # base
  "xyz",
  # disabled
  "x y z",
  # aria-disabled
  "a b c"
]

@cirdes cirdes closed this May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants