Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axis to allow custom HTML/SVG attributes #122

Open
Janiczek opened this issue Oct 19, 2022 · 0 comments
Open

Axis to allow custom HTML/SVG attributes #122

Janiczek opened this issue Oct 19, 2022 · 0 comments

Comments

@Janiczek
Copy link

Janiczek commented Oct 19, 2022

Hello!
I'd like to be able to do

C.xAxis [ CA.attrs [Svg.Attributes.class "text-grey2" ] ]

(or the htmlAttrs variant), but I'm disallowed this by:

type alias Axis =
  { limits : List (Attribute C.Axis)
  , pinned : C.Axis -> Float
  , arrow : Bool
  , color : String
  , width : Float
  }

I do have a workaround for now (generating CSS vars from my Tailwind config and then using CA.color "var(--tailwind-color-grey2)", but it would be nice to do the above with a class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant