Skip to content

Alert component: Add role, id, and hidden attributes#1914

Merged
gerardo-rodriguez merged 16 commits into
v-nextfrom
feature/alert-hidden-id
Jul 7, 2022
Merged

Alert component: Add role, id, and hidden attributes#1914
gerardo-rodriguez merged 16 commits into
v-nextfrom
feature/alert-hidden-id

Conversation

@gerardo-rodriguez

@gerardo-rodriguez gerardo-rodriguez commented Jul 6, 2022

Copy link
Copy Markdown
Member

Overview

This PR updates the Alert component:

  • adds a role, id, and hidden attributes
  • updates the stories documentation

Screenshots

Screen Shot 2022-07-06 at 4 48 07 PM

Testing

  1. Review the Alert component via the dev tools "Inspect element" to ensure the role, id and hidden attribute can be added

@gerardo-rodriguez gerardo-rodriguez self-assigned this Jul 6, 2022
@changeset-bot

changeset-bot Bot commented Jul 6, 2022

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d52be19

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

@netlify

netlify Bot commented Jul 6, 2022

Copy link
Copy Markdown

Deploy Preview for cloudfour-patterns ready!

Name Link
🔨 Latest commit d52be19
🔍 Latest deploy log https://app.netlify.com/sites/cloudfour-patterns/deploys/62c737c0cda1e30009966ae6
😎 Deploy Preview https://deploy-preview-1914--cloudfour-patterns.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@gerardo-rodriguez gerardo-rodriguez changed the title Add hidden and id properties Alert comonent: Allow id and hidden attributes Jul 7, 2022
@gerardo-rodriguez gerardo-rodriguez changed the title Alert comonent: Allow id and hidden attributes Alert component: Allow id and hidden attributes Jul 7, 2022
@gerardo-rodriguez
gerardo-rodriguez marked this pull request as ready for review July 7, 2022 00:16
@gerardo-rodriguez
gerardo-rodriguez requested review from a team and tylersticka July 7, 2022 00:16

@tylersticka tylersticka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great! A couple of non-blocking potential thoughts inline, and I'll leave approval to @cloudfour/dev since I'm not very confident in my ability to review the tests.

Comment thread src/components/alert/alert.twig Outdated
Comment thread src/components/alert/alert.stories.mdx Outdated
@gerardo-rodriguez

Copy link
Copy Markdown
Member Author

@cloudfour/dev I've addressed PR feedback. Ready for another review! 😄

Comment thread src/components/comment/comment.test.ts Outdated
@gerardo-rodriguez gerardo-rodriguez changed the title Alert component: Allow id and hidden attributes Alert component: Allow role, id, and hidden` attributes Jul 7, 2022
@gerardo-rodriguez gerardo-rodriguez changed the title Alert component: Allow role, id, and hidden` attributes Alert component: Add role, id, and hidden attributes Jul 7, 2022
@gerardo-rodriguez

Copy link
Copy Markdown
Member Author

@cloudfour/dev PR has been updated based on the latest round of feedback, thank you! 👍🏽

Comment thread src/components/alert/alert.stories.mdx Outdated
Co-authored-by: Caleb Eby <calebeby@users.noreply.github.com>
Comment thread src/components/alert/alert.stories.mdx Outdated
@gerardo-rodriguez
gerardo-rodriguez merged commit 896a746 into v-next Jul 7, 2022
@gerardo-rodriguez
gerardo-rodriguez deleted the feature/alert-hidden-id branch July 7, 2022 19:54
@github-actions github-actions Bot mentioned this pull request Jul 7, 2022
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.

Alert component should allow id and hidden attributes to be set

5 participants