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

feat: update fundamental-styles to 0.13.1-rc.2 #1266

Merged
merged 3 commits into from
Nov 20, 2020

Conversation

meganaconley
Copy link
Contributor

BREAKING CHANGE

Description

This update includes:

  • Button no longer has selected attribute
  • Tab aria attributes and role moved from the a to the li
  • Tab-index adjusted on Breadcrumb and role="menu" added
  • Added labels to docs page for better accessibility on examples
  • Fixed other accessibility concerns on stories, mostly around aria-labels for icons
  • Other minor css adjustments that did not require markup changes

@netlify
Copy link

netlify bot commented Nov 18, 2020

Deploy preview for fundamental-react ready!

Built with commit 3f3d9d1

https://deploy-preview-1266--fundamental-react.netlify.app

Copy link
Contributor

@jacobdevera jacobdevera left a comment

Choose a reason for hiding this comment

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

One q, otherwise looks good in QA

<Button
aria-label='Pie chart'
glyph='pie-chart'
selected />
Copy link
Contributor

Choose a reason for hiding this comment

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

selected was removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was removed as an attribute of the underlying <button> but not as a prop. It still is used to apply a classname.

<a
className={classnames(`${cssNamespace}-breadcrumb__link`)}
href={url}
tabIndex='0'>
Copy link
Contributor

@jacobdevera jacobdevera Nov 19, 2020

Choose a reason for hiding this comment

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

Is there a reason we need to explicitly set a tabindex for an a?
EDIT: never mind, it's inside the <li> with the negative tabindex, disregard

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing it seems to still work, but I think it's safest to keep it in case there are some browser/screen reader combos that might not tab to these links.

disabled
options={options}
placeholder='Select' />
);
export const readOnly = () => (
<Select
aria-label='readOnly'
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't sure how the screen reader would sound with the concatenated word readOnly but it sounds no different than if it were "Read Only" 👍

Copy link
Contributor

@Mike-Diaz Mike-Diaz left a comment

Choose a reason for hiding this comment

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

QA with VoiceOver, all new aria-labels are awesome!
Everything else works as expected!

@meganaconley meganaconley merged commit 60cbc68 into master Nov 20, 2020
@meganaconley meganaconley deleted the feat/upgrade-fs-1117 branch November 20, 2020 20:52
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.

None yet

3 participants