Skip to content

Icons on md-tab-link and md-tab is not aligned #5728

@sondreb

Description

@sondreb

Bug, feature request, or proposal:

Icons are not aligned when used together with md-tab-nav-bar and md-tab-link.

What is the expected behavior?

Expecting to see the icon aligned middle with the text.

What is the current behavior?

Icons is aligned too high.

What are the steps to reproduce?

Source:

<nav md-tab-nav-bar>
	<a md-tab-link>TEST</a>
	<a md-tab-link><md-icon>cloud</md-icon> TEST</a>
</nav>

Screenshot:
image

Source for inline tab:

<md-tab-group>
	<md-tab>
		<ng-template md-tab-label>
			<md-icon>cloud</md-icon> TEST
		</ng-template>
		<h1>Some tab content</h1>
	</md-tab>
	<md-tab label="TEST">
		<h1>Some more tab content</h1>
	</md-tab>
</md-tab-group>

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

Shouldn't need to write custom CSS to use icons on tabs or navigation.

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

Angular 4.2.5, Material beta 8, TypeScript 2.3.2, tested in Chrome.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions