@ausbom/form 0.4.30 → 0.4.31

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.
@@ -4,12 +4,11 @@
4
4
  .bom-form-radio {
5
5
  display: flex;
6
6
  align-items: center;
7
- font-size: 14px;
8
- letter-spacing: 0.25px;
9
- line-height: 24px;
10
7
  padding: 2px 0;
11
8
  cursor: pointer;
12
9
 
10
+ @include bom-type-scale($size: 'type-14', $line: 'paragraph');
11
+
13
12
  &--disabled {
14
13
  opacity: 0.6;
15
14
  cursor: not-allowed;
@@ -52,4 +51,55 @@
52
51
  outline: max(2px, 2.4px) solid get-palette-color('secondary.focusBlue');
53
52
  outline-offset: max(2px, 2.4px);
54
53
  }
54
+
55
+ // NOTE: These styles have been retained for backwards compatibility with older versions of the radio button component
56
+ .bom-form-radio__input {
57
+ @include visuallyhidden();
58
+ }
59
+
60
+ .bom-form-radio-focus {
61
+ display: block;
62
+ border: 2px solid transparent;
63
+ border-radius: 50%;
64
+ margin-left: -2px;
65
+ }
66
+
67
+ .bom-form-radio__label {
68
+ cursor: pointer;
69
+ display: inline-flex;
70
+
71
+ .bom-form-radio-icon--checked {
72
+ display: none;
73
+ }
74
+ }
75
+
76
+ .bom-form-radio__input:checked + .bom-form-radio__label {
77
+ .bom-form-radio-icon--checked {
78
+ display: block;
79
+ }
80
+
81
+ .bom-form-radio-icon--unchecked {
82
+ display: none;
83
+ }
84
+ }
85
+
86
+ .bom-form-radio__input:focus + .bom-form-radio__label {
87
+ .bom-form-radio-focus {
88
+ box-shadow: 0 0 0 2px get-palette-color('secondary.focusBlue');
89
+ height: 28px;
90
+ }
91
+ }
92
+
93
+ .bom-form-radio__input:disabled + .bom-form-radio__label {
94
+ cursor: not-allowed;
95
+ opacity: 0.6;
96
+ }
97
+
98
+ .bom-form-radio__label-text {
99
+ margin-left: 12px;
100
+ margin-top: 2px;
101
+
102
+ @include bom-type-scale($size: 'type-14', $line: 'paragraph');
103
+ }
104
+ // END NOTE
55
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ausbom/form",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -42,5 +42,5 @@
42
42
  "@ausbom/icon": "^0.19.1",
43
43
  "@ausbom/styles": "^0.12.0"
44
44
  },
45
- "gitHead": "a48d7f8a7e91f27163c338a71070cbef08041cf5"
45
+ "gitHead": "834040533dcace9396d4cad533d77eb1f18b2b4c"
46
46
  }