diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-07-03 15:58:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 15:58:07 -0500 |
commit | 696bffe832c8ce748f2e4cc31e82764a6afb5b66 (patch) | |
tree | 1bcb67ea49bf66c9679aa369e9be3ea37b178f79 /src/view/com/util/forms/ToggleButton.tsx | |
parent | bc55241c9ae731f633f8b93a9b7eac7635070148 (diff) | |
download | voidsky-696bffe832c8ce748f2e4cc31e82764a6afb5b66.tar.zst |
* Add alt text validation option to user preferences * Fix typos/linting issues * Update accessibility setting to match styles * Update the required alt text reminder to go away once it's added --------- Co-authored-by: Emma Fuller <emma@emmafuller.dev>
Diffstat (limited to 'src/view/com/util/forms/ToggleButton.tsx')
-rw-r--r-- | src/view/com/util/forms/ToggleButton.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/util/forms/ToggleButton.tsx b/src/view/com/util/forms/ToggleButton.tsx index 47620d0a6..02be80b31 100644 --- a/src/view/com/util/forms/ToggleButton.tsx +++ b/src/view/com/util/forms/ToggleButton.tsx @@ -5,18 +5,21 @@ import {Button, ButtonType} from './Button' import {useTheme} from 'lib/ThemeContext' import {choose} from 'lib/functions' import {colors} from 'lib/styles' +import {TypographyVariant} from 'lib/ThemeContext' export function ToggleButton({ type = 'default-light', label, isSelected, style, + labelType, onPress, }: { type?: ButtonType label: string isSelected: boolean style?: StyleProp<ViewStyle> + labelType?: TypographyVariant onPress?: () => void }) { const theme = useTheme() @@ -143,7 +146,7 @@ export function ToggleButton({ /> </View> {label === '' ? null : ( - <Text type="button" style={[labelStyle, styles.label]}> + <Text type={labelType || 'button'} style={[labelStyle, styles.label]}> {label} </Text> )} |