diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-04-16 08:03:59 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-04-19 11:35:01 +0200 |
| commit | bc7b8e9fc5f5776df1a2ec0520d1a26656e6c004 (patch) | |
| tree | c52398c0f7b131e72c52cd59ced688a3efbb7c82 | |
| parent | f9ad3d2fcf4dbf50e97fe60892af43643c285aa8 (diff) | |
| download | mullvadvpn-bc7b8e9fc5f5776df1a2ec0520d1a26656e6c004.tar.xz mullvadvpn-bc7b8e9fc5f5776df1a2ec0520d1a26656e6c004.zip | |
Add aria-label to edit custom bridge button
| -rw-r--r-- | gui/src/renderer/components/select-location/SpecialLocationList.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gui/src/renderer/components/select-location/SpecialLocationList.tsx b/gui/src/renderer/components/select-location/SpecialLocationList.tsx index 9579a6b4b5..a347638b0e 100644 --- a/gui/src/renderer/components/select-location/SpecialLocationList.tsx +++ b/gui/src/renderer/components/select-location/SpecialLocationList.tsx @@ -108,7 +108,8 @@ export function CustomBridgeLocationRow( const history = useHistory(); const bridgeSettings = useSelector((state) => state.settings.bridgeSettings); - const icon = bridgeSettings.custom !== undefined ? 'icon-edit' : 'icon-add'; + const bridgeConfigured = bridgeSettings.custom !== undefined; + const icon = bridgeConfigured ? 'icon-edit' : 'icon-add'; const selectedRef = props.source.selected ? props.selectedElementRef : undefined; const background = getButtonColor(props.source.selected, 0, props.source.disabled); @@ -135,7 +136,14 @@ export function CustomBridgeLocationRow( 'A custom bridge server can be used to circumvent censorship when regular Mullvad bridge servers don’t work.', )} /> - <StyledLocationRowIcon {...background} onClick={navigate}> + <StyledLocationRowIcon + {...background} + aria-label={ + bridgeConfigured + ? messages.pgettext('accessibility', 'Edit custom bridge') + : messages.pgettext('accessibility', 'Add new custom bridge') + } + onClick={navigate}> <StyledSpecialLocationSideButton source={icon} width={18} |
