Skip to content
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

✨ [bento][amp-accordion] Small update to documentation #33494

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

krdwan
Copy link
Contributor

@krdwan krdwan commented Mar 25, 2021

Small update to documentation to clarify bind behavior in 1.0 migration notes.

@@ -425,4 +425,4 @@ Keep the following points in mind when you style an amp-accordion:

The experimental `1.0` version of `amp-accordion` does not support session states. It behaves as if the `disable-session-states` attribute is always applied.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was incorrectly named data-expanded. (It's actually data-expand).

@krdwan krdwan requested a review from caroqliu March 25, 2021 19:35
@krdwan krdwan marked this pull request as ready for review March 25, 2021 21:00
@@ -425,4 +425,4 @@ Keep the following points in mind when you style an amp-accordion:

The experimental `1.0` version of `amp-accordion` does not support session states. It behaves as if the `disable-session-states` attribute is always applied.

Version `0.1` and `1.0` are compatible with `amp-bind`, but some binding syntax is different. You may bind directly with the `expanded` attribute in version `1.0`. The `[data-expanded]` is not supported in version `1.0`. See the `expanded` attribute below for further information.
Version `0.1` and `1.0` are compatible with `amp-bind`, but some binding syntax is different. You may bind directly with the `expanded` attribute in version `1.0`. The `data-expand` binding is not supported in version `1.0`. See the `expanded` attribute above for further information.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's link to the attribute in place.

Suggested change
Version `0.1` and `1.0` are compatible with `amp-bind`, but some binding syntax is different. You may bind directly with the `expanded` attribute in version `1.0`. The `data-expand` binding is not supported in version `1.0`. See the `expanded` attribute above for further information.
Version `0.1` and `1.0` are compatible with `amp-bind`, but some binding syntax is different. You may bind directly with the `expanded` attribute in version `1.0`. The `data-expand` binding is not supported in version `1.0`. See the [`expanded` attribute](#expanded) for further information.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, I've updated in the latest revision.

@krdwan krdwan merged commit 984907c into ampproject:main Apr 19, 2021
rochapablo pushed a commit to rochapablo/amphtml that referenced this pull request Aug 30, 2021
)

* Minor doc update

* Link to expanded attribute per review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants