Vaadin Flow Icon does not appear in the browser

Hello,

When we create arrow right icon with the following way, this icon does not appear in the browser.

new Icon (VaadinIcon.ARROW_RIGHT);

The same problem exists for VaadinIcon.EXIT.

I think this error is related to our default turkish-locale. Because when I inspect the element in the browser, I see arrow-rıght instead of arrow-right.
(In Turkish: We have I-I, I-i instead of English.

I think this problem is in the constructor method of the com.vaadin.flow.component.icon.Icon class.

public Icon(VaadinIcon icon) {
        this(ICON_COLLECTION_NAME, icon.name().toLowerCase().replace('_', '-'));
    }

This constructor use the String toLowerCase() method and this method works according to default locale.
This method should work with English locale in later vaadin-flow releases.

Is there any workaround for current release?

Thanks in advance.

Hi Atilla,

could you use…

	VaadinIcon.ARROW_RIGHT.create(); 

Stuart

Stuart Robinson:
Hi Atilla,

could you use…

	VaadinIcon.ARROW_RIGHT.create(); 

Stuart

This code is effectively the same code as Atilla reported.

@Atilla I think you spotted a bug and this should be reported to the Vaadin dev team.

I opened an issue at github.
https://github.com/vaadin/flow/issues/6254