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

added label to TransferListMain example. #1541

Merged

Conversation

siddhantrawal
Copy link
Contributor

Changes

Added area-label to TransferListMain example. Fixed a11y violation.

Testing

Before:
Screenshot 2023-08-31 102926

After:
Screenshot 2023-08-31 120016

Docs

N/A

@siddhantrawal siddhantrawal requested review from a team as code owners August 31, 2023 16:08
@siddhantrawal siddhantrawal requested review from mayank99 and r100-stack and removed request for a team August 31, 2023 16:08
@siddhantrawal siddhantrawal self-assigned this Aug 31, 2023
@siddhantrawal siddhantrawal changed the title added area-label to TransferListMain example. added label to TransferListMain example. Aug 31, 2023
@siddhantrawal siddhantrawal added the a11y Accessibility issues (keyboard navigation, color contrast, assistive technologies, semantics, etc) label Sep 1, 2023
Copy link
Member

@r100-stack r100-stack left a comment

Choose a reason for hiding this comment

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

There is no difference between the TransferList.main and TransferList.withlabel. Also, if the label is required, then "With Label" is no longer a variant; it is the default.

@mayank99, was there a reason why these two nearly identical examples existed? Were we planning to document more variants in the future? If there's no special reason, let's remove this TransferList.withLabel along with the "Variants" headings.

Copy link
Member

@r100-stack r100-stack left a comment

Choose a reason for hiding this comment

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

#1541 (review) can be tackled in another PR

@mayank99
Copy link
Contributor

mayank99 commented Sep 1, 2023

There is no difference between the TransferList.main and TransferList.withlabel. Also, if the label is required, then "With Label" is no longer a variant; it is the default.

Agreed, we can remove the "withlabel" example, and document that labels should always be provided.

@siddhantrawal siddhantrawal added this pull request to the merge queue Sep 1, 2023
Merged via the queue into dev with commit 710cb8e Sep 1, 2023
15 of 16 checks passed
@siddhantrawal siddhantrawal deleted the siddhant/added-area-label-TransferListMainExample branch September 1, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility issues (keyboard navigation, color contrast, assistive technologies, semantics, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants