Fixes button-group label visibility (#5299)

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
This commit is contained in:
Ali Yanni 2023-03-14 07:15:47 -04:00 committed by GitHub
parent 9ccdf05cca
commit aa88186cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,14 @@ export const ButtonGroup = function Button({
};
return (
<div className="widget-buttongroup" style={{ height }} data-cy={dataCy}>
{label && <p className={`widget-buttongroup-label ${darkMode && 'text-light'}`}>{label}</p>}
{label && (
<p
style={{ display: computedStyles.display }}
className={`widget-buttongroup-label ${darkMode && 'text-light'}`}
>
{label}
</p>
)}
<div>
{data?.map((item, index) => (
<button