We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
amp-accordion has an animate prop that I would like too add, but I don't find how to do it.
animate
<Amp.AmpAccordion animate>
renders
<amp-accordion animate="true" class="i-amphtml-element i-amphtml-layout-container i-amphtml-layout">
which is not a valid amp-html
<Amp.AmpAccordion animate={null}>
<amp-accordion class="i-amphtml-element i-amphtml-layout-container i-amphtml-layout">
The text was updated successfully, but these errors were encountered:
Hello!
This is more related to the W3C DOM specification and React in general. Any attribute with an empty string will render into the DOM without a value.
W3C relevant documentation: https://www.w3.org/TR/html5/syntax.html#elements-attributes
Empty attribute syntax Just the attribute name. The value is implicitly the empty string. In the following example, the disabled attribute is given with the empty attribute syntax: <input disabled> If an attribute using the empty attribute syntax is to be followed by another attribute, then there must be a space character separating the two.
Empty attribute syntax Just the attribute name. The value is implicitly the empty string.
In the following example, the disabled attribute is given with the empty attribute syntax: <input disabled>
In the following example, the disabled attribute is given with the empty attribute syntax:
<input disabled>
If an attribute using the empty attribute syntax is to be followed by another attribute, then there must be a space character separating the two.
Example JSX:
<Amp.AmpAccordion animate="">
...renders to...
<amp-accordion animate class="i-amphtml-element i-amphtml-layout-container i-amphtml-layout">
Sorry, something went wrong.
No branches or pull requests
the problem
amp-accordion has an
animate
prop that I would like too add, but I don't find how to do it.what I've tried
renders
which is not a valid amp-html
renders
The text was updated successfully, but these errors were encountered: