angular / angular/components

[Tabs] Header with icon+text not vertically aligned

未关闭
#10,141 8 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
area: material/tabs P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### 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?

贡献指南

打开贡献指南

调研方向

从链接的 StackBlitz 复现开始,检查包含 mat-icon 和 Attach File 文本的 mat-tab-label 模板。将其对齐方式与报告中的按钮行为进行比较,然后验证图标和标签是否垂直居中,同时不改变选项卡内容的行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。