Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make styles overridable to support different font sizes #57

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

SjaakSchilperoort
Copy link
Member

Copy link
Collaborator

@jonathan-waarneming-nl jonathan-waarneming-nl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 mini dingetje, voo de rest: Bueno 👌

@@ -74,7 +76,7 @@ const LargeButton = ({
<Icon name={iconName} size={theme.icon.size.large} color={iconColor} />
</View>
)}
<Text style={[styles.title, textStyle]}>{title}</Text>
<Text style={[styles.title, titleStyle, textStyle]}>{title}</Text>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nu kan de text style niet overschreven worden, is dat expres?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja.textStyle, buttonStyle en iconColor horen bij elkaar en definiëren de kleurstelling van de button. Ik beschouw textStyle voor de tekst van de button dan ook als een gegeven. Ik zie ook geen use case voor het kunnen overrulen van enkel de tekstkleur.

@SjaakSchilperoort SjaakSchilperoort force-pushed the feature/use-larger-font-sizes branch from 2112e11 to 44526f1 Compare December 6, 2024 10:19
Copy link
Collaborator

@jonathan-waarneming-nl jonathan-waarneming-nl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@SjaakSchilperoort SjaakSchilperoort merged commit 1df76aa into develop Dec 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants