Skip to content

Commit

Permalink
Aria-label everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
belinde committed Apr 17, 2024
1 parent 8ef5c8c commit 66b1097
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/InitialNoteForm/NoteSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const NoteSelector: FC<{
key={n}
icon={`numeric-${n}`}
value={n.toString()}
aria-label={n.toString()}
accessibilityLabel={n.toString()}
/>
))}
Expand All @@ -77,6 +78,7 @@ export const NoteSelector: FC<{
key={n}
value={n}
label={noteName(n)}
aria-label={noteName(n)}
accessibilityLabel={noteName(n)}
/>
))}
Expand Down
1 change: 1 addition & 0 deletions src/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Page: FC<{
return (
<View
accessible
aria-label={props.accessibilityLabel}
accessibilityLabel={props.accessibilityLabel}
style={{
flex: 1,
Expand Down
1 change: 1 addition & 0 deletions src/components/SongForm/SongInitialNotesManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const SongInitialNotesManagement: FC<{
renderAction={(note) => (
<IconButton
icon="pencil"
aria-label="Modifica nota iniziale"
accessibilityLabel="Modifica nota iniziale"
onPress={() => {
setCanChange(false);
Expand Down
1 change: 1 addition & 0 deletions src/components/SongForm/SongTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const SongTextInput: FC<{
error={props.mandatory && !value}
label={props.label}
accessibilityLabel={props.label}
aria-label={props.label}
value={value}
onChangeText={onChangeText}
multiline={props.multiline}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/Concert/ViewConcertMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const ViewConcertMenu: FC = () => {
icon="dots-vertical"
onPress={() => setVisible(true)}
accessibilityLabel="Azioni"
aria-label="Azioni"
/>
}
overlayAccessibilityLabel="Menu del concerto"
Expand All @@ -37,6 +38,7 @@ export const ViewConcertMenu: FC = () => {
}}
title="Modifica"
accessibilityLabel="Modifica il concerto"
aria-label="Modifica il concerto"
/>
<Menu.Item
leadingIcon="delete"
Expand Down Expand Up @@ -65,6 +67,7 @@ export const ViewConcertMenu: FC = () => {
}}
title="Elimina"
accessibilityLabel="Elimina il concerto dal repertorio"
aria-label="Elimina il concerto dal repertorio"
/>
</Menu>
);
Expand Down
3 changes: 3 additions & 0 deletions src/pages/Library/ViewSongMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const ViewSongMenu: FC = () => {
icon="dots-vertical"
onPress={() => setVisible(true)}
accessibilityLabel="Azioni"
aria-label="Azioni"
/>
}
overlayAccessibilityLabel="Menu del pezzo"
Expand All @@ -37,6 +38,7 @@ export const ViewSongMenu: FC = () => {
}}
title="Modifica"
accessibilityLabel="Modifica il pezzo"
aria-label="Modifica il pezzo"
/>
<Menu.Item
leadingIcon="delete"
Expand Down Expand Up @@ -65,6 +67,7 @@ export const ViewSongMenu: FC = () => {
}}
title="Elimina"
accessibilityLabel="Elimina il pezzo"
aria-label="Elimina il pezzo"
/>
</Menu>
);
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Settings/Basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ export const Basic: FC = () => {
value="latin"
label="Do, Re, Mi..."
accessibilityLabel="Do, Re, Mi..."
aria-label="Do, Re, Mi..."
/>
<RadioButton.Item
value="english"
label="A, B, C..."
accessibilityLabel="A, B, C..."
label="C, D, E..."
accessibilityLabel="C, D, E..."
aria-label="C, D, E..."
/>
</RadioButton.Group>

Expand Down
1 change: 1 addition & 0 deletions src/pages/Settings/SectionSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const SectionPart: FC<{
onPress={() => props.toggle()}
label={label}
accessibilityLabel={label}
aria-label={label}
/>
</View>
);
Expand Down

0 comments on commit 66b1097

Please sign in to comment.