-
Notifications
You must be signed in to change notification settings - Fork 109
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
w
system argument hard to discover when looking for 'width'
#2435
Comments
You can use the sys arg pry(main)> puts helper.render Primer::BaseComponent.new(tag: :span, w: :full)
<span data-view-component="true" class="width-full"></span> This is listed in the "Layout" section of https://primer.style/view-components/system-arguments |
Thank you! I saw -- https://primer.style/view-components/lookbook/pages/system_arguments I see Maybe the docs could be updated so both arguments reference each other, and so |
w
system argument hard to discover when looking for 'width'
I saw #638 was closed, but I just ran into the inability to apply the
width-full
class to a view component in version 0.15.1 of the primer_view_components gem. I'm trying to make this view component have thewidth-full
class:If I pass
width: :full
, it adds awidth="full"
HTML attribute to the element, but if I passclasses: "width-full"
, it raises an exception:width: "100%"
also results in awidth="100%"
HTML attribute on the element.The text was updated successfully, but these errors were encountered: