glyphs icon indicating copy to clipboard operation
glyphs copied to clipboard

React styles require camel case

Open aerlaut opened this issue 1 year ago • 0 comments

I faced this issue when trying to use glyphs react-core in Next.JS:

image

As described, the issue comes from the use of strings instead of style mappings in the components. For example, looking at CoreSquare:

image

The style attribute is using string instead of object, and

image

the svg attributes (i.e. stroke-width, stroke-linecap, stroke-linejoin) are also not using the proper camelcase attribute texts.

Can these be fixed?

aerlaut avatar Feb 04 '24 12:02 aerlaut