Skip to content

Mention themed HTML (vaadin-themed-html / themedHtml) on the Styling HTML Elements page #6769

In review

Description

@totally-not-ai

The Styling HTML Elements page says nothing about the new themed HTML feature. Today it's only documented in two places:

That page is where people look when they want to style native HTML elements. Searching the docs for "themed html" returns too many unrelated hits to be useful.

Proposal

Add a short section to articles/styling/styling-elements.adoc that explains:

  • By default, native HTML elements aren't styled by the Aura or Lumo theme.
  • Adding the vaadin-themed-html class to an element or an ancestor makes the theme style the elements underneath it. Today that means only <table>; later releases may cover more elements.
  • Setting the vaadin.themedHtml configuration property adds that class to <body>, which applies it to the whole app.
  • Adding vaadin-unthemed-html to an element under a themed ancestor opts it back out.
  • The Flow constants are Constants.THEMED_HTML_CLASS_NAME and Constants.UNTHEMED_HTML_CLASS_NAME.

Link to the configuration property and to the Table page's Styling section. Keep the wording general, so the section stays correct when more elements are supported.

Working on behalf of Stefan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions