Skip to content

cropped ::before and ::after icons in WebKit Browser after @db-ux/react-core-components package update #5247

@d-koppenhagen

Description

@d-koppenhagen

Which generators are affected?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

  1. Update from @db-ux/[email protected] to @db-ux/[email protected]
  2. use a component with icon like this one:
    <DBInfotext>
      Auswählen, um Informationen zu Ihrem Hilfsmittel anzugeben
    </DBInfotext>
  3. Open the app in Safari (iOS or macOS)
  4. Vary the viewport sizes, sometimes the icons are cropped

I think it's the case everytime ::before or ::after is used.

Expected Behaviour

No cropped icons.

Screenshots

Image Image

Browser version

Safari

Add any other context about the problem here.

https://codesandbox.io/p/sandbox/github/db-ux-design-system/examples/tree/main/react-example

Which DB business unit do you work for?

DB InfraGO AG

”DB Systel” please enter your customer / ”other” please enter your area or business unit.

No response

What project are you working on?

Mobility4All

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions