Page 1 of 1

[REACT] edit default css style of a child element

Posted: Wed Jul 07, 2021 4:51 pm
by d.salvati

Hello, how can I edit a default margin-bottom: 0.5rem on the text element (underlined in the code) which is inside a button element? thank you

{
                type: 'button',
                ref         : 'readOnlyButton',
                [u]text[/u]        : 'read-only mode',
                tooltip     : 'Toggles read-only mode on grid',
                toggleable  : true,
                icon        : 'b-fa-square',
                pressedIcon : 'b-fa-check-square'
}

Re: [REACT] edit default css style of a child element

Posted: Wed Jul 07, 2021 5:15 pm
by mats

You can override it with your own CSS rules, just like any other elements?