Skip to content

feat(carbon-react): remove label from default props#9731

Merged
kodiakhq[bot] merged 3 commits into
carbon-design-system:mainfrom
dakahn:9466-require-accessible-labels
Nov 8, 2021
Merged

feat(carbon-react): remove label from default props#9731
kodiakhq[bot] merged 3 commits into
carbon-design-system:mainfrom
dakahn:9466-require-accessible-labels

Conversation

@dakahn

@dakahn dakahn commented Sep 23, 2021

Copy link
Copy Markdown
Contributor

partially closes #9466

Removes various labelling from defaultProps for v11 🏄🏾

Changelog

Changed

  • src/components/OverflowMenu/OverflowMenu.js
  • src/components/Switch/Switch.js

Testing / Reviewing

In a v11 feature flagged environment test and see (via the Storys i'd suppose) if omitting proper labeling causes a console error from React 🦖

attn @abbeyhrt

@dakahn dakahn requested a review from a team as a code owner September 23, 2021 23:17
@netlify

netlify Bot commented Sep 23, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: 6b1f12a

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/618982ff5bd07900080897a7

😎 Browse the preview: https://deploy-preview-9731--carbon-react-next.netlify.app/

@netlify

netlify Bot commented Sep 23, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 Explore the source changes: 6b1f12a

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/618982ff41e4d10007051c2b

😎 Browse the preview: https://deploy-preview-9731--carbon-components-react.netlify.app/

@netlify

netlify Bot commented Sep 23, 2021

Copy link
Copy Markdown

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: 6b1f12a

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/618982ff5bfd7300080e6a49

😎 Browse the preview: https://deploy-preview-9731--carbon-elements.netlify.app

@abbeyhrt abbeyhrt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me! I think there was another one in OverflowMenuItem that needs to be updated too

@joshblack joshblack changed the title feat(Carbon-React): remove label from default props feat(carbon-react): remove label from default props Sep 27, 2021
Comment on lines +101 to +103
ariaLabel: FeatureFlags.enabled('enable-v11-release')
? PropTypes.string.isRequired
: PropTypes.string,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In this component, are we looking for ariaLabel or iconDescription to be the accessibility label for the component?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I figured iconDescription was not necessarily the accessibility label

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it could be specified but we would still allow a default?

Comment thread packages/react/src/components/Switch/Switch.js Outdated

@joshblack joshblack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry I blanked on this! Looks good

@abbeyhrt abbeyhrt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah sorry! Looks good to me, sorry for ignoring it for so long!

@kodiakhq kodiakhq Bot merged commit c06edfa into carbon-design-system:main Nov 8, 2021
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.

Do not provide accessible labels by default, for example: "Provide icon description"

3 participants