playbook_ui 12.37.0.pre.alpha.PLAY951collapsiblenav31073 → 12.37.0.pre.alpha.PLAY951collapsiblenav31078

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a614a1ec23f8a5684100225c2de79beb702f61989d5d0507cf334247e5dee619
4
- data.tar.gz: 2426810438f198dd19fbbe01fbb08a8701b85d9abd987ae8a0b31e588f9e0764
3
+ metadata.gz: bf2b1506bcffa9036acfa79e0938d64c12b73271f835283c1d7a810925c76b49
4
+ data.tar.gz: 71d153b0d3af01df033fc620f457d33259da874106754eb4f08410a101dcc1ea
5
5
  SHA512:
6
- metadata.gz: 92ce569a84e8e191695ff8bb75735d698ee0ba5b1915a8a174951cca08f70b7f1236532ec565f37e63f5cf1b3a7b57945804a5b1d3dc4bec018d41fe0d5208c1
7
- data.tar.gz: e8c89499abd48d531b224ebba171145fbc302ff66f513ee11fe2c52af599925dea9ecbb889a5798e0a3cb4196d1770710b5aaeb88e785a99b519615d0a802213
6
+ metadata.gz: a128988fd7827a9da95c818e86a3a6f8eda872dc5a7681dedd35aa23bb25496286886a04db47ae45965a587e0747074b85f4e4f4968366c948eaa108c169cf35
7
+ data.tar.gz: d08d9346f961164fa8ad08d0d85affad812bd0432fc20eaf0937864f521a89afdd3964f6140fc47debc0c303eb725d491606e462050df455c37d2a10f4e61fd5
@@ -13,7 +13,7 @@
13
13
  }
14
14
  }
15
15
 
16
- .font_bold {
16
+ .font_bolder {
17
17
  .pb_nav_list_item_text {
18
18
  @include pb_title_4;
19
19
  }
@@ -25,6 +25,17 @@
25
25
  }
26
26
  }
27
27
 
28
+ .font_bold {
29
+ .pb_nav_list_item_text {
30
+ font-weight: $bold;
31
+ }
32
+ .pb_collapsible_main_kit {
33
+ .pb_nav_list_item_text_collapsible {
34
+ font-weight: $bold !important;
35
+ }
36
+ }
37
+ }
38
+
28
39
  .font_regular {
29
40
  .pb_nav_list_item_text {
30
41
  font-weight: $regular;
@@ -36,7 +47,6 @@
36
47
  }
37
48
  }
38
49
 
39
-
40
50
  //styling for default variant with collapsible
41
51
  &[class*="_normal"] {
42
52
  [class*="pb_collapsible_nav_item"] {
@@ -147,6 +157,10 @@
147
157
  }
148
158
 
149
159
  [class*="pb_collapsible_nav_item"] {
160
+ .pb_nav_list_kit_item {
161
+ margin-right: 0px !important;
162
+ }
163
+
150
164
  &[class*="_active"] {
151
165
  background-color: unset !important;
152
166
  .pb_nav_list_item_link {
@@ -11,7 +11,7 @@ import Collapsible from '../pb_collapsible/_collapsible'
11
11
  type NavItemProps = {
12
12
  active?: boolean,
13
13
  aria?: { [key: string]: string },
14
- fontWeight?: "regular" | "bold",
14
+ fontWeight?: "regular" | "bold" | "bolder",
15
15
  children?: React.ReactNode[] | React.ReactNode,
16
16
  className?: string,
17
17
  collapsible?: boolean,
@@ -61,7 +61,7 @@ const NavItem = (props: NavItemProps) => {
61
61
  const activeClass = active === true ? 'active' : ''
62
62
  const collapsibleTrailClass = collapsible && collapsibleTrail ? 'collapsible_trail' : ''
63
63
  const fontSizeClass = fontSize === 'small' ? "font_size_small" : "font_size_normal"
64
- const fontWeightClass = fontWeight === 'bold' ? "font_bold" : "font_regular"
64
+ const fontWeightClass = fontWeight === 'bold' ? "font_bold" : fontWeight === 'bolder' ? "font_bolder" : "font_regular"
65
65
  const ariaProps = buildAriaProps(aria)
66
66
  const dataProps = buildDataProps(data)
67
67
  const classes = classnames(buildCss('pb_nav_list_kit_item', activeClass),
@@ -8,7 +8,7 @@ const CollapsibleNav = (props) => {
8
8
  active
9
9
  collapsible
10
10
  collapsibleTrail
11
- fontWeight="bold"
11
+ fontWeight="bolder"
12
12
  iconLeft="city"
13
13
  iconRight={["plus", "minus"]}
14
14
  link="#"
@@ -34,7 +34,7 @@ const CollapsibleNav = (props) => {
34
34
  <NavItem
35
35
  collapsible
36
36
  collapsibleTrail
37
- // fontWeight="bold"
37
+ fontWeight="bolder"
38
38
  iconLeft="theater-masks"
39
39
  iconRight={["plus", "minus"]}
40
40
  link="#"
@@ -60,7 +60,7 @@ const CollapsibleNav = (props) => {
60
60
  <NavItem
61
61
  collapsible
62
62
  collapsibleTrail
63
- // fontWeight="bold"
63
+ fontWeight="bolder"
64
64
  iconLeft="city"
65
65
  iconRight={["plus", "minus"]}
66
66
  link="#"
@@ -26,7 +26,7 @@ const CollapsibleNavCustom = (props) => {
26
26
  collapsed={collapsed}
27
27
  collapsible
28
28
  collapsibleTrail
29
- fontWeight="bold"
29
+ fontWeight="bolder"
30
30
  iconLeft="chevron-down"
31
31
  id={`collapsible-nav-item-${index + 1}`}
32
32
  key={index}
@@ -1,19 +1,19 @@
1
1
  <%= pb_rails("nav", props: { variant: "subtle" }) do %>
2
- <%= pb_rails("nav/item", props: { text: "Overview", link: "#", font_weight:"bold", font_size:"small", collapsible: true, icon_left:"city" }) do %>
2
+ <%= pb_rails("nav/item", props: { text: "Overview", link: "#", font_weight:"bolder", font_size:"small", collapsible: true, icon_left:"city", collapsible_trail: true }) do %>
3
3
  <%= pb_rails("nav", props: { variant: "subtle" }) do %>
4
4
  <%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
5
5
  <%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
6
6
  <%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
7
7
  <% end %>
8
8
  <% end %>
9
- <%= pb_rails("nav/item", props: { text: "Albums", link: "#", font_weight:"bold", font_size:"small", collapsible: true, icon_left: "theater-masks" }) do %>
9
+ <%= pb_rails("nav/item", props: { text: "Albums", link: "#", font_weight:"bolder", font_size:"small", collapsible: true, icon_left: "theater-masks", collapsible_trail:true }) do %>
10
10
  <%= pb_rails("nav", props: { variant: "subtle" }) do %>
11
11
  <%= pb_rails("nav/item", props: { text: "Entertainment", link: "#" }) %>
12
12
  <%= pb_rails("nav/item", props: { text: "Food", link: "#" }) %>
13
13
  <%= pb_rails("nav/item", props: { text: "Style", link: "#" }) %>
14
14
  <% end %>
15
15
  <% end %>
16
- <%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", font_weight:"bold", font_size:"small", collapsible: true, icon_left: "city" }) do %>
16
+ <%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", font_weight:"bolder", font_size:"small", collapsible: true, icon_left: "city", collapsible_trail:true }) do %>
17
17
  <%= pb_rails("nav", props: { variant: "subtle" }) do %>
18
18
  <%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
19
19
  <%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
@@ -9,7 +9,7 @@ const CollapsibleNavEmphasize = (props) => {
9
9
  collapsible
10
10
  collapsibleTrail
11
11
  fontSize="small"
12
- fontWeight="bold"
12
+ fontWeight="bolder"
13
13
  iconLeft="city"
14
14
  iconRight={["plus", "minus"]}
15
15
  link="#"
@@ -36,7 +36,7 @@ const CollapsibleNavEmphasize = (props) => {
36
36
  collapsible
37
37
  collapsibleTrail
38
38
  fontSize="small"
39
- fontWeight="bold"
39
+ fontWeight="bolder"
40
40
  iconLeft="theater-masks"
41
41
  iconRight={["plus", "minus"]}
42
42
  link="#"
@@ -63,7 +63,7 @@ const CollapsibleNavEmphasize = (props) => {
63
63
  collapsible
64
64
  collapsibleTrail
65
65
  fontSize="small"
66
- fontWeight="bold"
66
+ fontWeight="bolder"
67
67
  iconLeft="city"
68
68
  iconRight={["plus", "minus"]}
69
69
  link="#"
@@ -8,7 +8,7 @@ module Playbook
8
8
  values: %w[normal small],
9
9
  default: "normal"
10
10
  prop :font_weight, type: Playbook::Props::Enum,
11
- values: %w[bold regular],
11
+ values: %w[bold regular bolder],
12
12
  default: "regular"
13
13
  prop :collapsible, type: Playbook::Props::Boolean, default: false
14
14
  prop :link
@@ -56,7 +56,14 @@ module Playbook
56
56
  end
57
57
 
58
58
  def font_weight_class
59
- font_weight === "bold" ? "font_bold" : "font_regular"
59
+ case font_weight
60
+ when "bold"
61
+ "font_bold"
62
+ when "bolder"
63
+ "font_bolder"
64
+ else
65
+ "font_regular"
66
+ end
60
67
  end
61
68
 
62
69
  def collapsible_trail_class