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

Improved text sizing in main menu #5568

Merged
merged 2 commits into from
May 8, 2023

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented May 4, 2023

What has been done to verify that this works as intended?

I've tested the fix and compared it with how it looks on master.

Why is this the best possible solution? Were any other approaches considered?

This is what we have discussed with @alyblenkin textAppearanceLabelLarge is the recommended style for this type of button according to https://github.com/material-components/material-components-android/blob/master/docs/components/Button.md#text-label-attributes and 18sp makes it a little bit smaller.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

It doesn't require testing.

Do we need any specific form for testing your changes? If so, please attach one.

No.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@seadowg
Copy link
Member

seadowg commented May 4, 2023

@alyblenkin @grzesiek2010 how would you feel about adding our own custom text token for this? It definitely doesn't feel like we want to bump "Label large" to 18sp as this would cause problems for smaller buttons. I do imagine we'll end up using a similar style for buttons in widgets (also full width and a place we want an easy tap target vertically). I'd usually not like the idea of "extending" Material, but I personally feel OK introducing a "label extra large" (?textAppearanceLabelExtraLarge) token seeing as it feels like a missing part of the typography scale for us.

@alyblenkin
Copy link
Collaborator

@seadowg @grzesiek2010, I think adding our own custom text token makes a lot of sense because it seems like there is a gap between their typography library. And I agree that we would be using it in other similar scenarios. I also added a story for unifying all the buttons . I still need to flesh it out more, but I think we could do them separately. Let me know what you think.

@alyblenkin
Copy link
Collaborator

Can I test this on my device before I add my review?

@grzesiek2010
Copy link
Member Author

@seadowg something like this? 5f4026e

collect_app/src/main/res/values/styles.xml Outdated Show resolved Hide resolved
collect_app/src/main/res/values/attrs.xml Show resolved Hide resolved
@seadowg
Copy link
Member

seadowg commented May 5, 2023

Can I test this on my device before I add my review?

I'll send you a build. I've got a todo to have them generated for you, but haven't had a chance to take care of that yet.

@seadowg
Copy link
Member

seadowg commented May 5, 2023

@alyblenkin let us know if you're happy with the changes, and we can go ahead and merge. I don't think we need QA on this one.

@grzesiek2010 grzesiek2010 added the high priority Should be looked at before other PRs/issues label May 5, 2023
@alyblenkin
Copy link
Collaborator

Looks great!

@seadowg seadowg merged commit 7938500 into getodk:master May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Should be looked at before other PRs/issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants