playbook_ui 14.6.2.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4247 → 14.6.2.pre.alpha.PLAY1538READMEroot4254

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: '0896cae36211162e8819470663f9dedb1716254cd40cb3a59c20caafd4d23b2d'
4
- data.tar.gz: 713356bd680806bce64921cdcdd51e74e562b79b9cee92bff6b7d2ef4602e436
3
+ metadata.gz: 937d12c02fb86c6d950583e46f9c6755dd0ef0351b84f5400bfdf69d95278f66
4
+ data.tar.gz: 9ee029fd5a953bddb672d6cba2979934c46da0931d8ddc918e3a284e8daaa97a
5
5
  SHA512:
6
- metadata.gz: 41b0df84cd4c1c54944f10026c6fb846bf9cff9016a376750c904321c40b0f7f16a4bf7372078f5d8a8d1f2048766c0726aabf89da3c0db5e79a2f41ecdb62b9
7
- data.tar.gz: 92d6d3a078efc32f7de1cff32648381ac14d1bf74ff33ea749ca9fd50d61f5991a2a5a4a9661fb2c50688c6df4880ee34f78dd631882e973abec6b43d805d7a4
6
+ metadata.gz: ba93111f6a67037128bac6847e70f71ced20a53a047ba24184e033b411c687b975b5dc73bddca4cfe8ebf27384c68915e7cc2d4e1f226bc6738ab010564704cb
7
+ data.tar.gz: c87c6bca69f6d8d5a2ddec7b2f11a4bd7d430ffc0b673a427b2b6cf6f8740c967bbe9b5553217da385e4d839cba3899f45961097c33a0b927afd1892057d455b
@@ -28,7 +28,8 @@ $pb_card_header_colors: map-merge(map-merge($product_colors, $additional_colors)
28
28
 
29
29
  @mixin pb_card_selected($border_color: $primary) {
30
30
  border-color: $border_color;
31
- border-width: $pb_card_border_width * 2;
31
+ border-width: $pb_card_border_width;
32
+ outline: 1px solid $border_color;
32
33
  }
33
34
 
34
35
  @mixin pb_card_selected_dark {
@@ -10,24 +10,6 @@
10
10
  $pb_selectable_card_indicator_size: 22px;
11
11
  $pb_selectable_card_border: 2px;
12
12
 
13
- $pb_selectable_space_classes: (
14
- xxs: $space_xxs,
15
- xs: $space_xs,
16
- sm: $space_sm,
17
- md: $space_md,
18
- lg: $space_lg,
19
- xl: $space_xl,
20
- );
21
- $pb_selectable_paddings: (
22
- p: "padding",
23
- pr: "padding-right",
24
- pl: "padding-left",
25
- pt: "padding-top",
26
- pb: "padding-bottom",
27
- px: ("padding-left", "padding-right"),
28
- py: ("padding-top", "padding-bottom")
29
- );
30
-
31
13
  [class^=pb_selectable_card_kit] {
32
14
  display: block;
33
15
  margin-bottom: 0;
@@ -46,6 +28,7 @@ $pb_selectable_paddings: (
46
28
  padding: $space_sm;
47
29
  margin-bottom: $space_sm;
48
30
  cursor: pointer;
31
+ outline: 1px solid transparent;
49
32
 
50
33
  @media (hover:hover) {
51
34
  &:hover {
@@ -91,7 +74,6 @@ $pb_selectable_paddings: (
91
74
 
92
75
  position: relative;
93
76
  @include pb_card_selected;
94
- padding: calc(#{$space_sm} - 1px);
95
77
  transition-property: none;
96
78
  transition-duration: 0s;
97
79
 
@@ -106,54 +88,6 @@ $pb_selectable_paddings: (
106
88
  background-color: $royal;
107
89
  }
108
90
  }
109
-
110
- // Selected card has 1px more border
111
- // Remove 1px so content does not "jump"
112
- @each $position_name,
113
- $position in $pb_selectable_paddings {
114
- @each $space_name,
115
- $space in $pb_selectable_space_classes {
116
- ~ label.#{$position_name}_#{$space_name} {
117
- @if type-of($position)=="list" {
118
- @each $coordinate in $position {
119
- #{$coordinate}: calc(#{$space} - 1px) !important;
120
- }
121
- }
122
-
123
- @else {
124
- #{$position}: calc(#{$space} - 1px) !important;
125
- }
126
- }
127
- }
128
- }
129
- }
130
- }
131
-
132
- &[class*=_display_input] {
133
- input[type="checkbox"],
134
- input[type="radio"] {
135
- &:checked {
136
- ~label {
137
- border-width: $pb_card_border_width;
138
- outline: 1px solid $primary;
139
- }
140
-
141
- }
142
- }
143
-
144
- > label {
145
- outline: 1px solid transparent;
146
- padding: $space_sm;
147
- }
148
-
149
- &.dark {
150
- input[type="checkbox"],
151
- input[type="radio"] {
152
- &:checked ~ label {
153
- border-width: $pb_card_border_width;
154
- outline: 1px solid $primary;
155
- }
156
- }
157
91
  }
158
92
  }
159
93
 
@@ -66,7 +66,6 @@ const SelectableCard = (props: SelectableCardProps) => {
66
66
  'checked': checked,
67
67
  'disabled': disabled,
68
68
  'enabled': !disabled,
69
- 'display_input': variant === 'displayInput',
70
69
  }),
71
70
  { error },
72
71
  dark ? 'dark' : '',
@@ -25,7 +25,7 @@
25
25
  <% end %>
26
26
  <div class="separator"></div>
27
27
  <div class="psuedo_separator"></div>
28
- <%= pb_rails("card", props: { padding: "sm", status: object.status, border_none: true, dark: object.dark }) do %>
28
+ <%= pb_rails("card", props: { padding: "sm", status: object.status, border_none: true }) do %>
29
29
  <% if content.nil? %>
30
30
  <%= pb_rails("body", props: { text: object.text }) %>
31
31
  <% else %>
@@ -25,7 +25,7 @@ module Playbook
25
25
 
26
26
  def classname
27
27
  [
28
- generate_classname_without_spacing("pb_selectable_card_kit", checked_class, enable_disabled_class, display_input_class),
28
+ generate_classname_without_spacing("pb_selectable_card_kit", checked_class, enable_disabled_class),
29
29
  error_class,
30
30
  dark_props,
31
31
  ].compact.join(" ")
@@ -79,10 +79,6 @@ module Playbook
79
79
  def error_class
80
80
  error ? "error" : nil
81
81
  end
82
-
83
- def display_input_class
84
- variant == "display_input" ? "display_input" : nil
85
- end
86
82
  end
87
83
  end
88
84
  end