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

Invalid font CSS for mat-input-container class #5262

Closed
robmv opened this issue Jun 20, 2017 · 3 comments · Fixed by #5154
Closed

Invalid font CSS for mat-input-container class #5262

robmv opened this issue Jun 20, 2017 · 3 comments · Fixed by #5154
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@robmv
Copy link

robmv commented Jun 20, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

font CSS style for .mat-input-container should be valid

What is the current behavior?

Default typography theme set

font: 400 inherit/1.125 Roboto,Helvetica Neue,sans-serif

which both Firefox and Chrome developer tools show as invalid (the inherit value for font-size). So all Input fields are not correctly font styled, only if a parent is (for example body).

What are the steps to reproduce?

Check https://material.angular.io/components/input/examples and go to the inspector and notice the invalid CSS

screenshot from 2017-06-20 17-12-25

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

To have correct default Roboto fonts styles on input field without depending on body styles like beta 6 did

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

Material beta 7

Is there anything else we should know?

@jelbourn jelbourn added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Jun 20, 2017
@crisbeto
Copy link
Member

Will be fixed by #5154.

crisbeto added a commit to crisbeto/material2 that referenced this issue Jun 21, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes angular#5262.
mmalerba pushed a commit that referenced this issue Jul 6, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
jelbourn pushed a commit that referenced this issue Jul 14, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
@crisbeto crisbeto marked this as a duplicate of #5907 Jul 20, 2017
kara pushed a commit that referenced this issue Jul 21, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
andrewseguin pushed a commit that referenced this issue Jul 24, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
andrewseguin pushed a commit that referenced this issue Jul 25, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
andrewseguin pushed a commit that referenced this issue Jul 26, 2017
Fixes the `font` declaration on the `md-input-container` being ignored, because it was invalid.

Note: I updated the font size to the correct value from [the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states), however I'm not using it, in order to avoid any breaking changes. Also note that since the line height wasn't being used before, the baseline is now slightly off when next to a select.

Fixes #5262.
@gtranter
Copy link

While the invalid CSS problem is fixed, the problematic behavior is not. Font size is still inherited which is not correct unless parent element font size happens to be defined as 16, which in most circumstances is unlikely. Material Design specifies that the font size be 16, so inherit is wrong.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants