Skip to content

Conversation

@tylersticka
Copy link
Member

@tylersticka tylersticka commented Jul 9, 2021

Overview

  • Adds a Badge component (see docs for details)
  • Adds demo role badges to Comment component
  • Adds pencil icon for "author" role badge in comments

Screenshots

Screen Shot 2021-07-09 at 3 38 18 PM

Screen Shot 2021-07-09 at 3 38 33 PM

Testing

On the deploy preview…


@changeset-bot
Copy link

changeset-bot bot commented Jul 9, 2021

🦋 Changeset detected

Latest commit: 9ec9af2

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

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Minor

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

@tylersticka tylersticka marked this pull request as ready for review July 9, 2021 22:54
@tylersticka tylersticka requested review from a team July 9, 2021 22:54
Copy link
Contributor

@Paul-Hebert Paul-Hebert left a comment

Choose a reason for hiding this comment

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

This looks great! I've got one question inline about how we're exposing the pencil icon SVG to screen readers and other assistive tech.

{% if icon %}
{% include '@cloudfour/components/icon/icon.twig' with {
name: icon
} only %}
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed the Firefox a11y inspector was complaining about this being an unlabeled image:

Screen Shot 2021-07-12 at 9 33 25 AM

Since this is decorative should we add aria-hidden="true" or role="presentation"?

(FWIW this does read correctly in VoiceOver, but I wonder if it could lead to issues in other assistive technologies.)

Copy link
Member Author

Choose a reason for hiding this comment

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

D'oh! This is an oversight on my part, thank you for pointing it out.

@Paul-Hebert Paul-Hebert self-requested a review July 12, 2021 16:51
Copy link
Contributor

@Paul-Hebert Paul-Hebert left a comment

Choose a reason for hiding this comment

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

🚢

@tylersticka tylersticka merged commit 799e874 into v-next Jul 12, 2021
@tylersticka tylersticka deleted the feature/c-badge branch July 12, 2021 16:59
@github-actions github-actions bot mentioned this pull request Jul 12, 2021
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.

3 participants