question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mat-hint type descender and uppercase accents are cropped in mat-form-field

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

All alphabet letters should be readable.

What is the current behavior?

The lower case letters that have descenders (g, j, p, q and y) should not be cropped in mat-hint

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

Text readability.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Probably a very recent build, the package-lock.json from the material.angular.io repo points to a commit.

Is there anything else we should know?

  1. I’ve tested only on openSUSE Linux.

  2. The Material Design specification doesn’t say much about the “Helper text”: https://material.io/guidelines/components/text-fields.html#text-fields-layout

  3. The .mat-form-field line-height is inherited by .mat-hint. The problem goes away if you add .mat-hint { line-height: initial; }, but this solution doesn’t seem right, probably, the line-height on the .mat-form-field should not be that small: 1.125

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
mmalerbacommented, Feb 16, 2018

Interesting, I tested Chrome & Firefox on Debian and Chrome, Firefox, and Safari on OS X. All seem fine, I wonder if maybe its specific to openSUSE?

Also here’s another workaround that should have less side effects for the rest of your app (won’t affect the sizing of any elements):

.mat-form-field .mat-form-field-subscript-wrapper {
  overflow: visible;
}
0reactions
angular-automatic-lock-bot[bot]commented, Apr 5, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Form field - Angular Material
<mat-form-field> is a component used to wrap several Angular Material components and apply common Text field styles such as the underline, floating label, ......
Read more >
Accents part of the 2048/1000 limit? - TypeDrawers
Type designers: How do you decide the size of your type on the "body"? Do you just use the full 1000 upm, ascender...
Read more >
mat-form-field must contain a MatFormFieldControl
I had this issue. I imported MatFormFieldModule at my main module, but forgot to add MatInputModule to the imports array, like so:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found