@foeewni/web-core 2.5.3 → 2.7.0

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.
@@ -149,6 +149,12 @@ input {
149
149
 
150
150
  &:not(.form-control-sm):not(.form-control-lg) {
151
151
  @extend .form-control;
152
+
153
+ &:focus,
154
+ &.focus {
155
+ outline: $foe-element-default-outline;
156
+ outline-offset: $foe-element-default-outline-offset;
157
+ }
152
158
  }
153
159
  }
154
160
  }
@@ -158,6 +164,12 @@ select {
158
164
 
159
165
  &:not(.form-control-sm):not(.form-control-lg) {
160
166
  @extend .form-control;
167
+
168
+ &:focus,
169
+ &.focus {
170
+ outline: $foe-element-default-outline;
171
+ outline-offset: $foe-element-default-outline-offset;
172
+ }
161
173
  }
162
174
  }
163
175
 
@@ -165,6 +177,12 @@ textarea {
165
177
  @extend .form-control;
166
178
 
167
179
  margin-bottom: $spacer;
180
+
181
+ &:focus,
182
+ &.focus {
183
+ outline: $foe-element-default-outline;
184
+ outline-offset: $foe-element-default-outline-offset;
185
+ }
168
186
  }
169
187
 
170
188
  %checkradio-label {
@@ -254,10 +272,21 @@ textarea {
254
272
  // Stylelint goes nuts on + selectors like this
255
273
  /* stylelint-disable no-descending-specificity */
256
274
  input[type=checkbox] {
257
- display: none;
275
+ // display: none; //this wasn't accessible by tabbing so changing for the below
276
+ // using advice from https://stackoverflow.com/questions/51207650/how-to-use-keyboard-tab-on-hidden-radio-buttons
277
+ opacity: 0;
278
+ position: absolute;
279
+ z-index: -1;
258
280
 
259
281
  + label {
260
282
  @extend %checkradio-label;
283
+
284
+ &:focus,
285
+ &.focus {
286
+ outline: $foe-element-default-outline;
287
+ outline-offset: $foe-element-default-outline-offset;
288
+ box-shadow: 0 0 0 $foe-element-default-focus-width $foe-element-default-focus-color;
289
+ }
261
290
  }
262
291
 
263
292
  + label::before {
@@ -279,10 +308,18 @@ input[type=checkbox] {
279
308
  &:checked:disabled + label::before {
280
309
  @extend %checkradio-picker-checked-disabled;
281
310
  }
311
+
312
+ &:focus + label {
313
+ outline: $foe-element-default-outline;
314
+ outline-offset: $foe-element-default-outline-offset;
315
+ box-shadow: 0 0 0 $foe-element-default-focus-width $foe-element-default-focus-color;
316
+ }
282
317
  }
283
318
 
284
319
  input[type=radio] {
285
- display: none;
320
+ opacity: 0;
321
+ position: absolute;
322
+ z-index: -1;
286
323
 
287
324
  + label {
288
325
  @extend %checkradio-label;
@@ -307,6 +344,12 @@ input[type=radio] {
307
344
  &:checked:disabled + label::before {
308
345
  @extend %checkradio-picker-checked-disabled;
309
346
  }
347
+
348
+ &:focus + label {
349
+ outline: $foe-element-default-outline;
350
+ outline-offset: $foe-element-default-outline-offset;
351
+ box-shadow: 0 0 0 $foe-element-default-focus-width $foe-element-default-focus-color;
352
+ }
310
353
  }
311
354
  /* stylelint-enable no-descending-specificity */
312
355
 
@@ -45,7 +45,9 @@
45
45
 
46
46
  &:focus {
47
47
  background-color: transparent;
48
- outline: 0 none transparent;
48
+ box-shadow: 0 0 0 $foe-element-default-focus-width $foe-element-default-focus-color;
49
+ outline: $foe-element-default-outline;
50
+ outline-offset: $foe-element-default-outline-offset;
49
51
  }
50
52
 
51
53
  &:hover {
@@ -79,6 +79,7 @@ blockquote {
79
79
  font-size: 1rem;
80
80
  line-height: 1.3rem;
81
81
  font-weight: 400;
82
+ font-style: italic;
82
83
  color: $gray-500;
83
84
  display: block;
84
85
  text-align: right;
package/src/fonts.js CHANGED
@@ -32,6 +32,7 @@ To use them on your CSS please import the webfonts through Google Fonts
32
32
  // Note, single line deep imports are needed here, for some reason fontawesome messes up
33
33
  // with normal imports and webpack ends up bundling the whole library (1.25mb!)
34
34
  import { library, dom } from '@fortawesome/fontawesome-svg-core';
35
+
35
36
  import { faEnvelope } from '@fortawesome/free-solid-svg-icons/faEnvelope';
36
37
  import { faSearch } from '@fortawesome/free-solid-svg-icons/faSearch';
37
38
  import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
@@ -40,19 +41,6 @@ import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons/faExt
40
41
  import { faArrowAltCircleUp } from '@fortawesome/free-solid-svg-icons/faArrowAltCircleUp';
41
42
  import { faShare } from '@fortawesome/free-solid-svg-icons/faShare';
42
43
  import { faLink } from '@fortawesome/free-solid-svg-icons/faLink';
43
- import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter';
44
- import { faFacebook } from '@fortawesome/free-brands-svg-icons/faFacebook';
45
- import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
46
- import { faPinterest } from '@fortawesome/free-brands-svg-icons/faPinterest';
47
- import { faLinkedin } from '@fortawesome/free-brands-svg-icons/faLinkedin';
48
- import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram';
49
- import { faYoutube } from '@fortawesome/free-brands-svg-icons/faYoutube';
50
- import { faTumblr } from '@fortawesome/free-brands-svg-icons/faTumblr';
51
- import { faWhatsapp } from '@fortawesome/free-brands-svg-icons/faWhatsapp';
52
- import { faFacebookMessenger } from '@fortawesome/free-brands-svg-icons/faFacebookMessenger';
53
- import { faTelegram } from '@fortawesome/free-brands-svg-icons/faTelegram';
54
- import { faTelegramPlane } from '@fortawesome/free-brands-svg-icons/faTelegramPlane';
55
- import { faTiktok } from '@fortawesome/free-brands-svg-icons/faTiktok';
56
44
  import { faChevronDown } from '@fortawesome/free-solid-svg-icons/faChevronDown';
57
45
  import { faChevronUp } from '@fortawesome/free-solid-svg-icons/faChevronUp';
58
46
  import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
@@ -76,6 +64,23 @@ import { faSave } from '@fortawesome/free-solid-svg-icons/faSave';
76
64
  import { faSignInAlt } from '@fortawesome/free-solid-svg-icons/faSignInAlt';
77
65
  import { faTrashAlt } from '@fortawesome/free-solid-svg-icons/faTrashAlt';
78
66
 
67
+ import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter';
68
+ import { faXTwitter } from '@fortawesome/free-brands-svg-icons/faXTwitter';
69
+ import { faFacebook } from '@fortawesome/free-brands-svg-icons/faFacebook';
70
+ import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
71
+ import { faPinterest } from '@fortawesome/free-brands-svg-icons/faPinterest';
72
+ import { faLinkedin } from '@fortawesome/free-brands-svg-icons/faLinkedin';
73
+ import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram';
74
+ import { faYoutube } from '@fortawesome/free-brands-svg-icons/faYoutube';
75
+ import { faTumblr } from '@fortawesome/free-brands-svg-icons/faTumblr';
76
+ import { faWhatsapp } from '@fortawesome/free-brands-svg-icons/faWhatsapp';
77
+ import { faFacebookMessenger } from '@fortawesome/free-brands-svg-icons/faFacebookMessenger';
78
+ import { faTelegram } from '@fortawesome/free-brands-svg-icons/faTelegram';
79
+ import { faTelegramPlane } from '@fortawesome/free-brands-svg-icons/faTelegramPlane';
80
+ import { faTiktok } from '@fortawesome/free-brands-svg-icons/faTiktok';
81
+ import { faBluesky } from '@fortawesome/free-brands-svg-icons/faBluesky';
82
+ import { faThreads } from '@fortawesome/free-brands-svg-icons/faThreads';
83
+
79
84
 
80
85
  // Add actually used FA icons
81
86
  library.add(
@@ -88,6 +93,7 @@ library.add(
88
93
  faShare,
89
94
  faLink,
90
95
  faTwitter,
96
+ faXTwitter,
91
97
  faFacebook,
92
98
  faFacebookF,
93
99
  faPinterest,
@@ -121,7 +127,9 @@ library.add(
121
127
  faSave,
122
128
  faTrashAlt,
123
129
  faCloudUploadAlt,
124
- faSignInAlt
130
+ faSignInAlt,
131
+ faBluesky,
132
+ faThreads
125
133
  );
126
134
 
127
135
  // Look for Google fonts and append them if they are not there already
@@ -407,6 +407,12 @@ $transition-base: all .2s ease-in-out;
407
407
  $transition-fade: opacity .15s linear;
408
408
  $transition-collapse: height .35s ease;
409
409
 
410
+ $foe-element-default-focus-width: .125rem;
411
+ $foe-element-default-focus-color: $black;
412
+
413
+ $foe-element-default-outline: .125rem solid $white;
414
+ $foe-element-default-outline-offset: .125rem;
415
+
410
416
 
411
417
  // Fonts
412
418
  //
@@ -527,9 +533,9 @@ $input-btn-padding-y: .5rem;
527
533
  $input-btn-padding-x: .75rem;
528
534
  $input-btn-line-height: $line-height-base;
529
535
 
530
- $input-btn-focus-width: .2rem;
531
- $input-btn-focus-color: rgba($component-active-bg, .75);
532
- $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color;
536
+ $input-btn-focus-width: $foe-element-default-focus-width;
537
+ $input-btn-focus-color: $foe-element-default-focus-color;
538
+ $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !important; //to override bootstrap default in button-variant mixin
533
539
 
534
540
  $input-btn-padding-y-sm: .25rem;
535
541
  $input-btn-padding-x-sm: .5rem;