You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This week's work has given us an opportunity to mull over whether components should be "strict" in which props they allow users to pass — or, as an implementation detail, which ones they actually respect. I can think of a couple that we may want to whitelist for some, if not all, Primer components:
id could people to provide deep links without having to wrap another element around their content.
hidden would provide a more systematic way to show and hide things.
Any aria- attribute, because a11y.
Any data- attribute, to provide hooks for JS behaviors implemented by container components.
Thoughts?
The text was updated successfully, but these errors were encountered:
This week's work has given us an opportunity to mull over whether components should be "strict" in which props they allow users to pass — or, as an implementation detail, which ones they actually respect. I can think of a couple that we may want to whitelist for some, if not all, Primer components:
id
could people to provide deep links without having to wrap another element around their content.hidden
would provide a more systematic way to show and hide things.aria-
attribute, because a11y.data-
attribute, to provide hooks for JS behaviors implemented by container components.Thoughts?
The text was updated successfully, but these errors were encountered: