-
Notifications
You must be signed in to change notification settings - Fork 622
StateLabel: Add open
and closed
states for no icon cases
#5803
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
Conversation
🦋 Changeset detectedLatest commit: 65160e3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
open
and closed
states for no icon cases
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
@@ -19,6 +20,14 @@ export const PullMerged = () => <StateLabel status="pullMerged">Merged</StateLab | |||
export const Queued = () => <StateLabel status="pullQueued">Queued</StateLabel> | |||
export const Draft = () => <StateLabel status="draft">Draft</StateLabel> | |||
export const Unavailable = () => <StateLabel status="unavailable">Unavailable</StateLabel> | |||
export const Open = () => ( | |||
<StateLabel status="open"> | |||
{/* Because open is a generic status, a visually hidden text could be added to specify the type of the artifact */} |
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 is optional - I am happy to remove it if you think it is unnecessary or confusing.
@broccolinisoup seems like the AAT failures are coming from color contrast: https://primer-d5758f4231-13348165.drafts.github.io/aat-no-flag/#?testId=9a7338b81aa38bfd83ad-792f1d5d04241e89b7e1&q=s:failed 👀 |
Thanks @joshblack !! I added the "open" story to color contrast skip list. |
@broccolinisoup just wanted to double-check, is that story expected to fail contrast checks? |
@joshblack I believe so—at least if the |
For milestone open and closes states, we need a variant of the StateLabel without an icon. After talking (GitHub staff only link) with @mperrotti and @emilybrick, they gave me a 👍🏻 to add two new states
open
andclosed
for cases that do not need/have an icon.Changelog
New
open
stateclosed
stateChanged
Removed
Rollout strategy
Testing & Reviewing
Merge checklist