Skip to content

Commit

Permalink
fix: avoid empty label for a11y compliance
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Hu <mason.hu@canonical.com>
  • Loading branch information
mas-who committed Feb 21, 2024
1 parent 621f2e1 commit 0368ad1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/networks/forms/IpAddressSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const IpAddressSelector: FC<Props> = ({ id, address, setAddress }) => {
</div>
<div className="ip-address-selector ip-address-custom">
<RadioInput
label=""
label="Custom"
aria-label="custom"
checked={isCustom}
onChange={() => setAddress("")}
Expand Down
4 changes: 4 additions & 0 deletions src/sass/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@
margin-left: -65px;
margin-top: -5px;
}

.p-radio__label {
font-size: 0;
}
}

.snapshot-schedule {
Expand Down

0 comments on commit 0368ad1

Please sign in to comment.