From 20c58295c49835fa885a7b38c72ec609e6599a16 Mon Sep 17 00:00:00 2001
From: Xuebin Dong
Date: Tue, 23 Jan 2018 01:05:44 +0800
Subject: [PATCH] fix(secondary-tabs): refactor the secondary tabs into nested
structure (#906)
---
src/less/tabs.less | 2 +-
src/sass/converted/patternfly/_tabs.scss | 2 +-
tests/pages/tabs.html | 259 +++++++++++++----------
3 files changed, 146 insertions(+), 117 deletions(-)
diff --git a/src/less/tabs.less b/src/less/tabs.less
index 4d6e61525c..38b65f8beb 100644
--- a/src/less/tabs.less
+++ b/src/less/tabs.less
@@ -26,7 +26,7 @@
}
}
}
- + .nav-tabs-pf {
+ + .nav-tabs-pf, &.nav-tabs-pf-secondary {
font-size: @font-size-base;
> li:first-child > a {
padding-left: 15px;
diff --git a/src/sass/converted/patternfly/_tabs.scss b/src/sass/converted/patternfly/_tabs.scss
index c4b8f9ecf6..3de0e12492 100644
--- a/src/sass/converted/patternfly/_tabs.scss
+++ b/src/sass/converted/patternfly/_tabs.scss
@@ -26,7 +26,7 @@
}
}
}
- + .nav-tabs-pf {
+ + .nav-tabs-pf, &.nav-tabs-pf-secondary {
font-size: $font-size-base;
> li:first-child > a {
padding-left: 15px;
diff --git a/tests/pages/tabs.html b/tests/pages/tabs.html
index b2030a41b9..2ea0720c33 100644
--- a/tests/pages/tabs.html
+++ b/tests/pages/tabs.html
@@ -5,175 +5,175 @@
resource: true
---
Justified
Tabs with dropdowns
PatternFly Examples
Justified
Tabs with dropdowns
@@ -182,58 +182,87 @@ .nav-tabs + .nav-tabs-pf
Note: the markup semantics used here are sub-optimal in order to easily achieve a responsive layout.
\ No newline at end of file
+ Secondary Tab One
+ Secondary Tab Two
+ Secondary Tab Three
+ Secondary Tab Four
+ Secondary Tab Five
+ Secondary Tab Six
+ Secondary Tab Seven
+
+ .nav-tabs.nav-tabs-pf-secondary
+
+
\ No newline at end of file