angular / angular/components

[Tabs] Header with icon+text not vertically aligned

Open
#10,141 8 comments 5 reactions 0 assignees View on GitHub
area: material/tabs P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Bug, feature request, or proposal:
Tab with Icon and Text label not aligned vertically center, currently aligned bottom

#### What is the expected behavior?
Expect to align text and icon in middle. (as In Button with Icon and Label)
Tab Label and Icon are aligned in
screen shot 2018-02-25 at 8 56 32 pm

#### What is the current behavior?
Tab with Icon and Text label not aligned vertically center, currently aligned bottom

#### What are the steps to reproduce?
Providing a StackBlitz reproduction is the *best* way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

https://stackblitz.com/angular/rlqokrmnevel?file=app%2Ftabs-template-label-example.html

```


attach_file Attach File


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla venenatis ante augue.
#### What is the use-case or motivation for changing an existing behavior?

```

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

#### Is there anything else we should know?

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction and inspect the mat-tab-label template containing mat-icon and the Attach File text. Compare its alignment with the reported button behavior, then verify that the icon and label are vertically centered without changing tab content behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.