Review 11.5 Merged

75415[BUGFIX] Reflect size property to attribute in icon-element

Helmut Hummel CR +2 V +2 Easy +5 −5 updated 08/12/22, 20:10

Commit message

When using the custom element <typo3-backend-icon>
with a JS framework, that renders the DOM (e.g. Vue),
it can happen, that they set the properties of the custom element
instead of an attribute.

Since Lit does not reflect these properties to attributes by default,
but the icon-element relies on CSS set on the host element that depends
on the size attribute, the icon is not rendered in the correct size.

See: https://web.dev/custom-elements-best-practices/
on why reflecting properties to attributes might be a good idea
in some cases.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2