Skip to content

fix: update the css query and events used to rename copy button aria-labels#3271

Merged
musale merged 6 commits into
mainfrom
fix/a11y-append-copytxt
Aug 12, 2024
Merged

fix: update the css query and events used to rename copy button aria-labels#3271
musale merged 6 commits into
mainfrom
fix/a11y-append-copytxt

Conversation

@musale

@musale musale commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

Closes #3076

PR Type

  • Bugfix

Description of the changes

  • Use scroll event to get the copy buttons used in code blocks
  • Update the aria-label text to mention the header text

PR checklist

  • Project builds (yarn build) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)
  • All public APIs (classes, methods, etc) have been documented following the jsdoc syntax
  • Stories have been added and existing stories have been tested
  • Added appropriate documentation. Docs PR:
  • License header has been added to all new source files (yarn setLicense)
  • Contains NO breaking changes

Other information

@musale musale added this to the 4.2.5 milestone Aug 6, 2024
@musale musale requested a review from a team as a code owner August 6, 2024 16:26
Comment thread .storybook/components/ElementNamer.jsx Outdated
@microsoft-github-policy-service microsoft-github-policy-service Bot added Needs: Author Feedback Issue needs response from issue author and removed Needs: Author Feedback Issue needs response from issue author labels Aug 7, 2024
Co-authored-by: Nickii Miaro <miaronkirote@gmail.com>
@musale musale requested a review from Mnickii August 7, 2024 10:43
@github-actions

github-actions Bot commented Aug 7, 2024

Copy link
Copy Markdown

📖 The updated storybook is available here

@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2024

Copy link
Copy Markdown

@Mnickii Mnickii left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@musale musale merged commit 439d0fc into main Aug 12, 2024
@musale musale deleted the fix/a11y-append-copytxt branch August 12, 2024 07:41
@musale

musale commented Aug 12, 2024

Copy link
Copy Markdown
Contributor Author

@Raisul123 I closed this before you tested it out, my bad. Please use the next link https://mgt.dev/next/ to test if this is fixed. If not, comment on this PR and I'll re-open the issue and post a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[MGTP-Overview-Go Full screen button ]: Screen reader is not announcing the label ‘From a CDN’ along with ‘Copy’ button.

2 participants