Skip to content

Create new whitelist of AMP component CSS classes used to style based on state #1490

@davisshaver

Description

@davisshaver

<amp-form> for example has an .amp-form-submit-success selector, any blocks with this selector get shaken out. This is a bit different from the dynamic element whitelist (dynamic_element_selectors) as we want the parent selector to be ignored, not the child selector as in the dynamic element whitelist.

E.g. .amp-form-submit-success p { display: none } should have a reduced version as p { display: none; } so it doesn't get shaken out.

<amp-form> classes include:

  • .amp-form-initial
  • .amp-form-verify
  • .amp-form-verify-error
  • .amp-form-submitting
  • .amp-form-submit-success
  • .amp-form-submit-error

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions