Skip to content

Commit

Permalink
šŸ›Update validator-amp-base-carousel.protoascii with 'controls' attribā€¦
Browse files Browse the repository at this point in the history
ā€¦ute. Resolves 31872 (#31873)

* Update validator-amp-base-carousel.protoascii

Missing "controls" attribute
https://amp.dev/documentation/components/amp-base-carousel/?format=websites#controls

* Support media query syntax

https://amp.dev/documentation/components/amp-base-carousel/#media-queries

Co-authored-by: Caroline Liu <10456171+caroqliu@users.noreply.github.com>
  • Loading branch information
Notebit and caroqliu committed Jan 26, 2021
1 parent e93ed28 commit 030d76b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ attr_lists: {
# Media query / positive integer pairs
value_regex: "([^,]+\\s+(\\d+),\\s*)*(\\d+)"
}
attrs: {
name: "controls"
# Media query / (always|auto|never)
value_regex: "([^,]+\\s+(always|auto|never),\\s*)*(always|auto|never)"
}
attrs: {
name: "horizontal"
# Media query / boolean pairs
Expand Down

0 comments on commit 030d76b

Please sign in to comment.