-
Notifications
You must be signed in to change notification settings - Fork 115
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
Consolidate how we set default tag and allowed tags for accurate documentation #491
Comments
@khiga8 off the top of my head, I think we should be explicitly allow listing tags for every component. |
from 4/28 pairing:
|
TO REVIEW - components / slots that allow flexible tag
|
6/21/21 Component-driven UI meeting
|
@khiga8 I still think we should have an allow list of some sort for |
I chatted with |
@khiga8 sounds good. Want to close this out? |
In System arguments, we have:
All Primer ViewComponents accept a standard set of options called system arguments
. This includes atag
option but it isn't necessarily true that a consumer can update tags. In reality, some of our components don't allow tags to be change since we set internally:Other times, we have a default and allow tag to be changed based on user input:
OR
And other times, we have a default tag which can be changed to limited tag options.
The documentation for components don't always surface this information making it unclear what the default tag is, what tags are allowed, etc.
Our
Rake
populates the default tag section by looking the component initializer and checking if there's a tag keyword:However, we don't always set default tag like this so that section in the doc ends up being
N/A
for most components. This is a problem because it is ambiguous without looking at the component source code what tags are allowed, what the default tag is, etc.TODOS:
Contributing
docs?The text was updated successfully, but these errors were encountered: