Skip to content

bug: tabs-top tabs-striped titles misalign when active #3364

@mikejpeters

Description

@mikejpeters

Type: bug

Platform: all

http://codepen.io/anon/pen/bNOaOY

When a tabs-top tabs-striped tab is activated, the title is moved down by a couple pixels and does not line up with the title of the other, inactive, tabs.

I believe the problem was introduced in RC0 and only applies to tabs with titles instead of icons. (Tab icons are display: block and have a negative margin applied when the tab is active.)

https://github.com/driftyco/ionic/blob/bf40b222be85c8dba6e9531044505976fabc8d78/scss/_tabs.scss#L310

I think that similar styles need to be added for the .tab-title element, i.e. make it display: block, and update the rule on line 310 to:

> .tab-title, > .badge, > i {
  margin-top: -$tabs-striped-border-width + 1px;
}

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