https://linen.dev logo
Join Discord
Powered by
# react
  • g

    gray-state-67732

    03/04/2022, 4:11 PM
    https://github.com/kLabz/haxe-classnames
  • a

    ambitious-knife-25690

    03/04/2022, 4:16 PM
    i'm not sure if that's appropriate here, this is basically adding a different style at the end of the transition and i can't seem to modify the style property of the element that adds the margin 🤔
  • g

    gray-state-67732

    03/04/2022, 4:18 PM
    Sorry I had to go
  • g

    gray-state-67732

    03/04/2022, 4:18 PM
    Uh yeah you're doing a different thing actually x_x
  • a

    ambitious-knife-25690

    03/04/2022, 4:19 PM
    oh wait, i think I may have found the reason why 🤔
  • a

    ambitious-knife-25690

    03/04/2022, 4:19 PM
    this is the class key
  • a

    ambitious-knife-25690

    03/04/2022, 4:20 PM
    this is my definition as per the examples in the lib
  • g

    gray-state-67732

    03/04/2022, 4:20 PM
    Yeah seems fine but I don't use it so I need to look for it, I might have a remnant of usage somewhere
  • a

    ambitious-knife-25690

    03/04/2022, 4:21 PM
    it may not be actually converting
    root
    to
    .MuiAccordion-root
  • g

    gray-state-67732

    03/04/2022, 4:21 PM
    No no it's fine
  • g

    gray-state-67732

    03/04/2022, 4:21 PM
    Yeah I use
    classes={{expanded: props.classes.expanded}}
    and then you add
    expanded: { margin: 'auto' }
    in your jss (on the same level as
    root: { ... }
    )
  • g

    gray-state-67732

    03/04/2022, 4:22 PM
    Don't do
    '&expanded'
    or something for this, this is different
  • a

    ambitious-knife-25690

    03/04/2022, 4:23 PM
    I'm doing all the variants and none of them have any affect 😂
  • g

    gray-state-67732

    03/04/2022, 4:25 PM
    Eh. Is that code live?
  • a

    ambitious-knife-25690

    03/04/2022, 4:26 PM
    it's not, local env but I can send the file
  • g

    gray-state-67732

    03/04/2022, 4:26 PM
    Nah not the code, just the result x)
  • g

    gray-state-67732

    03/04/2022, 4:27 PM
    There you go 😄
  • a

    ambitious-knife-25690

    03/04/2022, 4:27 PM
    you can see that margin: auto thing not being applied
  • g

    gray-state-67732

    03/04/2022, 4:27 PM
    It works, you're just being less specific than mui's code
  • g

    gray-state-67732

    03/04/2022, 4:27 PM
    So you need good ol' dirty
    !important
  • a

    ambitious-knife-25690

    03/04/2022, 4:27 PM
    what is this 🤔
  • g

    gray-state-67732

    03/04/2022, 4:28 PM
    expanded: {margin: "auto!important"}
  • a

    ambitious-knife-25690

    03/04/2022, 4:28 PM
    and what's the correct way to specify it?
  • a

    ambitious-knife-25690

    03/04/2022, 4:29 PM
    yay that worked
  • g

    gray-state-67732

    03/04/2022, 4:29 PM
    Would need to expand jss so that you can do things like
    "&.{AccordionClassKey.Expanded}"
  • a

    ambitious-knife-25690

    03/04/2022, 4:30 PM
    ah
  • g

    gray-state-67732

    03/04/2022, 4:30 PM
    Maybe in the following weeks if I'm bored at work x)
  • a

    ambitious-knife-25690

    03/04/2022, 4:31 PM
    take your time 😁
  • a

    ambitious-knife-25690

    03/04/2022, 4:37 PM
    ah, would the
    $.
    syntax equate to
    '&$expanded': {}
    ?
  • g

    gray-state-67732

    03/04/2022, 4:43 PM
    Still not
1...707172...80Latest