System arguments `color` valid values differ from LabelComponent's `scheme` valid values
👋🏻 Something I noticed when trying to coordinate an Octicon's color with a LabelComponent's scheme was that the valid values for each aren't the same. Compare:
color:
Text color. One of :accent, :attention, :closed, :danger, :default, :done, :inherit, :muted, :on_emphasis, :open, :severe, :sponsors, :subtle, or :success.
-- https://primer.style/view-components/system-arguments#color
scheme:
One of :accent, :attention, :danger, :default, :done, :info, :orange, :primary, :purple, :secondary, :severe, :sponsors, :success, or :warning.
-- https://primer.style/view-components/components/label
Common values:
:accent:attention:danger:default:done:severe:sponsors:success
Differences:
:subtleis a validcolorbut is not a validscheme:closedis a validcolorbut is not a validscheme:inheritis a validcolorbut is not a validscheme:mutedis a validcolorbut is not a validscheme:on_emphasisis a validcolorbut is not a validscheme:openis a validcolorbut is not a validscheme:subtleis a validcolorbut is not a validscheme:infois a validschemebut is not a validcolor:warningis a validschemebut is not a validcolor:secondaryis a validschemebut is not a validcolor:purpleis a validschemebut is not a validcolor:primaryis a validschemebut is not a validcolor:orangeis a validschemebut is not a validcolor
I wanted to bring this up because I think some/all of the different values could actually probably work for both components, just based on my understanding that all these colors are coming from Primer variables like in https://primer.style/css/utilities/colors.
Hi @cheshire137, thanks for reporting this! It definitely seems like something that should get addressed. We're going to move this into our backlog to explore improving it in the future.
Internal note: this will require breaking changes.
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.
Not stale
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.
Are we still not stale, @lesliecdubs? The bot is insistent. 😅 I didn't want to reopen if y'all wanted it closed because it's not a priority right now, though.
@cheshire137 I think this is still a valid issue, though it's unlikely we will have resources within Primer Engineering to address it in the near future. Please feel free to reopen in the "Unprioritized backlog" if you'd like to keep this on the radar for future improvement.
Please feel free to reopen in the "Unprioritized backlog" if you'd like
Thanks! Sorry, is that a milestone/project/repo/label?
Sorry for the obtuse instruction 🤦🏻♀️ I will go ahead and reopen this issue and move it to the "Unprioritized backlog" on our team project board.
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.