Skip to content

Icons no longer show in Safari on a Mac #1023

@jonnymuir

Description

@jonnymuir

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

"version": "1.0.0"

Bug summary

Icons no are no longer visible on Safari (I am on Version 18.3 -20620.2.4.11.5)

Specifics

It is because the SVG underneath is now rendered as width and height of 0 due the :host display changed on the component with the following commit:

69520c6

Image

Works ok in chrome on a Mac. Just safari.

Steps to reproduce

Download latest.

Open vscode and use dev container.

npm run storybook

Go to the default icon

http://localhost:6007/?path=/story/uui-icon--default

(Or whatever port docker is using).

It isn't visible on Mac Safari - because the svg has 0 height / width.

Image

Change the display-inline back to display-block and it appears again:

Image Image

Not sure if the original centring fix is still fixed? I think probably, would need to know why it was changed to inline-flex

Expected result / actual result

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageThis issue has not been tested by a team member yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions