Skip to content

Commit

Permalink
LPD-19076 Hide label with CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrodw3 authored and brianchandotcom committed Mar 15, 2024
1 parent d15c9bb commit 46706fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ export default function ColorPicker({

return (
<ClayForm.Group aria-label={field.label} small>
{showLabel ? <label>{field.label}</label> : null}
<label className={classNames({'sr-only': !showLabel})}>
{field.label}
</label>

<div
className={classNames('layout__color-picker', {
Expand Down

0 comments on commit 46706fe

Please sign in to comment.