I have what might be a stupid question, im new to Radzen and development in general, one thing i cannot seem to figure out is simple CSS changes to the Radzen textarea, i can use the .rz-textarea to change the border color, background color etc, but when the textarea is active it uses the .rz-primary color to create a border, i cannot remove this active/focused border, change its color or anything. i have tried ::before and ::after, :focus and :active and honestly im losing my mind over something that should be straightforward
i have managed to change it for the likes of the rz-textbox using the ::before and ::after pursdo code. but nothing for the textarea component
You can use the CSS variables for styling. Inspect the element with the browser's devtools to see which particular variable you need to update. In your case this should be:
Hi @yordanov
Thank you for the response, i guess im not following, when i inspect the element i see the following -
"textarea id="iTpK9ymmHU" rows="2" cols="20" aria-label="TextArea with placeholder" class="rz-textarea valid rz-state-empty" placeholder="Please provide a detailed message for our suppport team." tabindex="0" _bl_38b1a0e4-d09f-4f5c-9dae-275093cc185e="" data-dashlane-rid="dd76430f5bb23c46" data-dashlane-classification="other">textarea"
in my CSS code i can change a few of the CSS variables like the below
i tired entering you Style in the mail HTML section but it does nothing,
<RadzenTextArea Placeholder="Please provide a detailed message for our suppport team." @bind-Value="supportForm.Message" Style="--rz-input-focus-border: 1px solid red;" aria-label="TextArea with placeholder" />
this is what i see when its active and when i have my mouse hovering 2 different colors
You CSS code does not update any CSS variable values, it just assigns CSS variables to the properties for color and border-color. I'd suggest to remove this code and update the css variables like this: