Skip to content
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

Update deprecated a11y attributes in button component #666

Merged
merged 5 commits into from
Jan 18, 2024

Conversation

brentswisher
Copy link
Contributor

@brentswisher brentswisher commented Jan 17, 2024

This change: (check at least one)

  • Adds a new feature
  • Fixes a bug
  • Improves maintainability
  • Improves documentation
  • Is a release activity

Is this a breaking change? (check one)

  • Yes
  • No

Is the: (complete all)

  • Title of this pull request clear, concise, and indicative of the issue number it addresses, if any?
  • Test suite(s) passing?
  • Code coverage maximal?
  • Changeset added?
  • Component status page up to date?

What does this change address?
While working on #660 I noticed that there were similar deprecation warnings being thrown for attributes recently updated in the button component not being used internally. This causes confusing console logs which are out of the control of the library's consumers to be shown when some components were rendered.

How does this change work?
Updates all internal instances of the button component to use the a11y-pressed and a11y-label attributes.

The pressed attribute is deprecated in favor of a11y-pressed. This
updates the toggle button group to use the new attribute and stop
console logging deprecation warnings when it is used.
Recently the label attribute was deprecated in favor of a11y-label. This
updtes all the button uses internal to the library to use the new
attribute. This prevents confusing warnings in the console for the end
users.
Copy link

changeset-bot bot commented Jan 17, 2024

🦋 Changeset detected

Latest commit: bd392a8

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

This PR includes changesets to release 2 packages
Name Type
@ithaka/pharos Patch
@ithaka/pharos-site 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
Contributor

github-actions bot commented Jan 17, 2024

size-limit report 📦

Path Size
packages/pharos/lib/index.js 53.3 KB (+0.03% 🔺)

@brentswisher brentswisher merged commit 79229b2 into develop Jan 18, 2024
11 checks passed
@brentswisher brentswisher deleted the fix/update-deprecated-a11y-attributes branch January 18, 2024 15:01
@github-actions github-actions bot mentioned this pull request Jan 19, 2024
daneah added a commit that referenced this pull request Mar 8, 2024
* develop: (77 commits)
  chore(deps): update GitHub Actions and Node versions (#704)
  fix(site): use Pharos v14 properties (#703)
  fix(storybook): update Babel configuration (#702)
  fix(infra): use Node 18 in .nvmrc (#701)
  fix(infra): update dependencies
  fix(infra): allow mutable Yarn lockfile during release for workspaces versions
  Version Packages (#700)
  Release/14.0.0 (#697)
  chore(deps): upgrade to Yarn 4 (#694)
  chore(deps): bump es5-ext from 0.10.62 to 0.10.64 (#692)
  fix(icon): add media query style for WHCM (#689)
  chore(deps): bump ip from 1.1.8 to 1.1.9 (#687)
  chore: version packages (#685)
  Icon: Add "add to folder" icon (#678)
  Fix the all-contributors badge (#680)
  Update link, dropdown-menu-nav, and popover to use a11y-label (#675)
  DropdownMenuNav: Add pharos-elevation-level-3 token (#670)
  chore(deps-dev): bump vite from 4.3.9 to 4.5.2 (#672)
  chore: version packages (#667)
  Update deprecated a11y attributes in button component (#666)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants