Skip to content

Comment Actions: Fixed Font Size#7870

Merged
jleandroperez merged 3 commits intodevelopfrom
issue/7696-comment-action-dynamic-type-fixes
Sep 29, 2017
Merged

Comment Actions: Fixed Font Size#7870
jleandroperez merged 3 commits intodevelopfrom
issue/7696-comment-action-dynamic-type-fixes

Conversation

@jleandroperez
Copy link
Contributor

@jleandroperez jleandroperez commented Sep 28, 2017

Details:

In this PR we're:

  • Updating VerticallyStackedButton so that the titleLabel never overflows the container frame.
  • Enforcing a fixed size for the Notification Comment's Actions.

I'm opting towards a fixed point size, since that's exactly what happens with the TabBar: each action has an icon, so it really does not make any sense to break the UI. Each action is recognizable always.

Fixes #7696

To test:

  1. Enable Dynamic Typing a select a bigger font
  2. Launch WPiOS
  3. Open a Comment-Y Notification
  4. Verify that Approving / Disapproving a comment doesn't cause the text to move
  5. Verify that the font size remains fixed.

Needs review: @elibud
Elisa, may i bug you with this one?

Thanks in advance!

@jleandroperez jleandroperez added this to the 8.6 milestone Sep 28, 2017
@jleandroperez jleandroperez self-assigned this Sep 28, 2017
Copy link
Contributor

@elibud elibud left a comment

Choose a reason for hiding this comment

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

Going forward we do not want to hard code any font size into the app, but configure all the labels in a way that they would adjust their size according to dynamic type. However for Notifications we haven't done any work on a12y and I agree that the icons are a huge help, so I'm happy to approve this since it solves the problem and we can re-visit once we add proper a12y support to this area of the app.

Thanks for tackling this!

@jleandroperez
Copy link
Contributor Author

Agreed on everything up there @elibud!! thanks for the review!

@jleandroperez jleandroperez merged commit 2f61d41 into develop Sep 29, 2017
@jleandroperez jleandroperez deleted the issue/7696-comment-action-dynamic-type-fixes branch September 29, 2017 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications: Comment labels shift when a comment is approved

2 participants