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
Icon: new docs #1698
Icon: new docs #1698
Conversation
✔️ Deploy Preview for gestalt ready! 🔨 Explore the source changes: 0022060 🔍 Inspect the deploy log: https://app.netlify.com/sites/gestalt/deploys/614cb38a23658f0007485991 😎 Browse the preview: https://deploy-preview-1698--gestalt.netlify.app |
4dd395a
to
561ce98
Compare
docs/pages/icon.js
Outdated
return <CardPage cards={cards} page="Icon" />; | ||
export async function getStaticProps(): Promise<{| props: {| generatedDocGen: DocGen |} |}> { | ||
return { | ||
props: { generatedDocGen: await docgen('Icon') }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlbertCarreras a proposal to make the icon
type on Icon
work: christianvuerings@71faa1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
420658b
to
78cf09e
Compare
a1033ef
to
ecf12ac
Compare
ecf12ac
to
0e6f9db
Compare
cy.configureAxe({ | ||
rules: [ | ||
{ | ||
id: 'aria-command-name', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we fix the violations instead of disabling the rule? If not, can you add a comment here about the issue(s)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll document it better. The problem is that sometimes the cmp has an empty label because there's a wrapper giving it a name, such as a tooltip. And I think this error come from there.
cy.injectAxe(); | ||
}); | ||
|
||
// Disable the test for now since it's timing out on GitHub CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bummer. Do you have a strategy to get it working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy pasting bad... cleaning up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
packages/gestalt/src/AvatarGroup.js
Outdated
* | ||
* See the [Accessibility guidelines](https://gestalt.pinterest.systems/AvatarGroup#Accessibility) for details on proper usage. | ||
* See the [Accessibility](#ARIA-attributes) guidelines for details on proper usage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a regression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. no idea how this got changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
packages/gestalt/src/AvatarGroup.js
Outdated
@@ -16,9 +16,9 @@ type Size = 'xs' | 'sm' | 'md' | 'fit'; | |||
type UnionRefs = HTMLDivElement | HTMLAnchorElement; | |||
type Props = {| | |||
/** | |||
* Label for the component used for screen readers. | |||
* Label for screen readers to announce Icon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does AvatarGroup show icons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked better the other description. Missed changing icon with avatargroup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
ce61ad5
to
9282d99
Compare
9282d99
to
0022060
Compare
Summary
Icon: new docs + Iconography and svgs guidelines
Links
Checklist