Adds fieldset/legend to preferences

This commit is contained in:
Josh Perez 2023-05-03 16:26:27 -04:00
parent 7c651e8773
commit f8ff0becfa
2 changed files with 6 additions and 3 deletions

View file

@ -155,6 +155,9 @@
}
&__settings-row {
border: none;
padding: 0;
padding-bottom: 20px;
h3 {

View file

@ -1324,10 +1324,10 @@ function SettingsRow({
className?: string;
}): JSX.Element {
return (
<div className={classNames('Preferences__settings-row', className)}>
{title && <h3 className="Preferences__padding">{title}</h3>}
<fieldset className={classNames('Preferences__settings-row', className)}>
{title && <legend className="Preferences__padding">{title}</legend>}
{children}
</div>
</fieldset>
);
}