aw-front-helpers 2.5.12 → 2.5.14

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.
@@ -9,26 +9,26 @@ const defaultOptions = {
9
9
  classIsError: 'is-error',
10
10
  animateToFirstError: false,
11
11
  i18n: {
12
- required: Translator
13
- ? Translator.trans('form_errors.pattern')
12
+ required: window.Translator
13
+ ? window.Translator.trans('form_errors.pattern')
14
14
  : 'Ce champs est obligatoire',
15
- same: Translator
16
- ? Translator.trans('form_errors.same')
15
+ same: window.Translator
16
+ ? window.Translator.trans('form_errors.same')
17
17
  : 'Les champs ne correspondent pas.',
18
- email: Translator
19
- ? Translator.trans('form_errors.email')
18
+ email: window.Translator
19
+ ? window.Translator.trans('form_errors.email')
20
20
  : 'Merci de renseigner un email valide.',
21
- empty: Translator
22
- ? Translator.trans('form_errors.empty')
21
+ empty: window.Translator
22
+ ? window.Translator.trans('form_errors.empty')
23
23
  : 'Ce champs est obligatoire.',
24
- checkbox: Translator
25
- ? Translator.trans('form_errors.checkbox')
24
+ checkbox: window.Translator
25
+ ? window.Translator.trans('form_errors.checkbox')
26
26
  : 'Veuillez accepter les conditions.',
27
- radio: Translator
28
- ? Translator.trans('form_errors.radio')
27
+ radio: window.Translator
28
+ ? window.Translator.trans('form_errors.radio')
29
29
  : 'Veuillez sélectionner au moins un choix.',
30
- pattern: Translator
31
- ? Translator.trans('form_errors.pattern')
30
+ pattern: window.Translator
31
+ ? window.Translator.trans('form_errors.pattern')
32
32
  : 'La donnée saisie ne respecte pas les règles énoncées.',
33
33
  },
34
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aw-front-helpers",
3
- "version": "2.5.12",
3
+ "version": "2.5.14",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",
@@ -14,4 +14,4 @@
14
14
  "exif-js": "^2.3.0",
15
15
  "gsap": "^3.12.3"
16
16
  }
17
- }
17
+ }
@@ -114,7 +114,7 @@ $vertical-spacing-desktop: 80px !default;
114
114
  width: auto;
115
115
  overflow: visible;
116
116
  background: transparent;
117
- color: inherit;
117
+ color: currentColor;
118
118
  font: inherit;
119
119
  line-height: normal;
120
120
  text-align: center;
@@ -150,10 +150,10 @@ h6 {
150
150
 
151
151
  a {
152
152
  text-decoration: none;
153
- color: $color-link;
154
- &:focus,
153
+ color: currentColor;
154
+ &:focus-visible,
155
155
  &:hover {
156
- color: $color-link;
156
+ color: currentColor;
157
157
  }
158
158
  }
159
159