@geoffcox/sterling-svelte-themes 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,6 +22,11 @@ https://github.com/GeoffCox/sterling-svelte-themes
22
22
 
23
23
  ## Change Log
24
24
 
25
+ ### 2.0.11
26
+
27
+ - Fix put 1px transparent border on checkbox and radio button variants to match
28
+ Button layout and size.
29
+
25
30
  ### 2.0.10
26
31
 
27
32
  - Fix to sizing of checkbox and radio button variant inputs
@@ -109,7 +109,7 @@ The checkmark is a rotated L centered in the box.
109
109
  border-color: var(--stsv-input__color--hover);
110
110
  }
111
111
 
112
- .sterling-checkbox > label {
112
+ .sterling-checkbox label {
113
113
  color: var(--stsv-common__color);
114
114
  transition: color 250ms;
115
115
  font: inherit;
@@ -117,7 +117,7 @@ The checkmark is a rotated L centered in the box.
117
117
 
118
118
  .sterling-checkbox.disabled,
119
119
  .sterling-checkbox.disabled input,
120
- .sterling-checkbox.disabled > label {
120
+ .sterling-checkbox.disabled label {
121
121
  cursor: not-allowed;
122
122
  }
123
123
 
@@ -130,7 +130,7 @@ The checkmark is a rotated L centered in the box.
130
130
  border-color: var(--stsv-input__color--disabled);
131
131
  }
132
132
 
133
- .sterling-checkbox.disabled > label {
133
+ .sterling-checkbox.disabled label {
134
134
  color: var(--stsv-common__color--disabled);
135
135
  }
136
136
 
@@ -138,7 +138,7 @@ The checkmark is a rotated L centered in the box.
138
138
  .sterling-checkbox .indicator,
139
139
  .sterling-checkbox .indicator::after,
140
140
  .sterling-checkbox .container::after,
141
- .sterling-checkbox > label {
141
+ .sterling-checkbox label {
142
142
  transition: none;
143
143
  }
144
144
  }
@@ -4,6 +4,7 @@
4
4
  grid-template-rows: 1fr;
5
5
  justify-content: center;
6
6
  justify-items: center;
7
+ border: 1px solid transparent;
7
8
  }
8
9
 
9
10
  .sterling-checkbox.button:not(.disabled):hover {
@@ -12,16 +13,13 @@
12
13
 
13
14
  .sterling-checkbox.button:not(.disabled):not(.checked):active {
14
15
  background-color: var(--stsv-button__background-color--active);
15
- border-color: transparent;
16
16
  }
17
17
 
18
18
  .sterling-checkbox.button:not(.disabled).checked {
19
19
  background-color: var(--stsv-input__background-color--selected);
20
- border-color: transparent;
21
20
  }
22
21
 
23
22
  .sterling-checkbox.button.using-keyboard:focus-within {
24
- border-color: var(--stsv-button__border-color--focus);
25
23
  outline-color: var(--stsv-common__outline-color);
26
24
  outline-offset: 0;
27
25
  outline-style: solid;
@@ -50,15 +48,18 @@
50
48
  height: unset;
51
49
  }
52
50
 
51
+ .sterling-radio.button label {
52
+ display: block;
53
+ }
54
+
53
55
  .sterling-checkbox.button .indicator {
54
56
  display: none;
55
57
  }
56
58
 
57
59
  .sterling-checkbox.button.disabled {
58
60
  background-color: var(--stsv-input__background-color--disabled);
59
- border-color: transparent;
60
61
  }
61
62
 
62
- .sterling-radio.button.disabled > label {
63
+ .sterling-checkbox.button.disabled label {
63
64
  color: var(--stsv-common__color--disabled);
64
65
  }
@@ -102,7 +102,7 @@
102
102
 
103
103
  .sterling-radio.disabled,
104
104
  .sterling-radio.disabled input,
105
- .sterling-radio.disabled > label {
105
+ .sterling-radio.disabled label {
106
106
  cursor: not-allowed;
107
107
  }
108
108
 
@@ -115,7 +115,7 @@
115
115
  border-color: var(--stsv-input__color--disabled);
116
116
  }
117
117
 
118
- .sterling-radio.disabled > label {
118
+ .sterling-radio.disabled label {
119
119
  color: var(--stsv-common__color--disabled);
120
120
  }
121
121
 
@@ -4,6 +4,7 @@
4
4
  grid-template-rows: 1fr;
5
5
  justify-content: center;
6
6
  justify-items: center;
7
+ border: 1px solid transparent;
7
8
  }
8
9
 
9
10
  .sterling-radio.button:not(.disabled):hover {
@@ -12,16 +13,13 @@
12
13
 
13
14
  .sterling-radio.button:not(.disabled):not(.checked):active {
14
15
  background-color: var(--stsv-button__background-color--active);
15
- border-color: transparent;
16
16
  }
17
17
 
18
18
  .sterling-radio.button:not(.disabled).checked {
19
19
  background-color: var(--stsv-input__background-color--selected);
20
- border-color: transparent;
21
20
  }
22
21
 
23
22
  .sterling-radio.button.using-keyboard:focus-within {
24
- border-color: var(--stsv-button__border-color--focus);
25
23
  outline-color: var(--stsv-common__outline-color);
26
24
  outline-offset: 0;
27
25
  outline-style: solid;
@@ -41,6 +39,10 @@
41
39
  margin-right: unset;
42
40
  }
43
41
 
42
+ .sterling-radio.button label {
43
+ display: block;
44
+ }
45
+
44
46
  .sterling-radio.button input {
45
47
  left: 0;
46
48
  top: 0;
@@ -57,9 +59,8 @@
57
59
 
58
60
  .sterling-radio.button.disabled {
59
61
  background-color: var(--stsv-input__background-color--disabled);
60
- border-color: transparent;
61
62
  }
62
63
 
63
- .sterling-radio.button.disabled > label {
64
+ .sterling-radio.button.disabled label {
64
65
  color: var(--stsv-common__color--disabled);
65
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geoffcox/sterling-svelte-themes",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "author": "Geoff Cox",
5
5
  "description": "A modern theme for the sterling-svelte component library.",
6
6
  "license": "MIT",