@italia/modal 1.0.0-alpha.7 → 1.0.0-alpha.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/modal",
3
3
  "description": "Web component it-modal del Design system .italia",
4
- "version": "1.0.0-alpha.7",
4
+ "version": "1.0.0-alpha.9",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -34,9 +34,9 @@
34
34
  "custom-elements.json"
35
35
  ],
36
36
  "dependencies": {
37
- "bootstrap-italia": "github:italia/bootstrap-italia#8c67506065fb844becbec9cc74f2d11de7101404",
37
+ "bootstrap-italia": "3.0.0-alpha.9",
38
38
  "lit": "^3.3.0",
39
- "@italia/globals": "^1.0.0-alpha.7"
39
+ "@italia/globals": "^1.0.0-alpha.9"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@custom-elements-manifest/analyzer": "^0.10.3",
@@ -51,14 +51,14 @@
51
51
  "sass": "^1.89.0",
52
52
  "tslib": "^2.6.3",
53
53
  "typescript": "^5.5.3",
54
- "@italia/typescript-config": "^0.0.0",
55
54
  "@italia/test-config": "^0.0.0",
56
- "@italia/button": "^1.0.0-alpha.7",
57
- "@italia/icon": "^1.0.0-alpha.7"
55
+ "@italia/button": "^1.0.0-alpha.9",
56
+ "@italia/icon": "^1.0.0-alpha.9",
57
+ "@italia/typescript-config": "^0.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@italia/button": "^1.0.0-alpha.7",
61
- "@italia/icon": "^1.0.0-alpha.7"
60
+ "@italia/button": "^1.0.0-alpha.9",
61
+ "@italia/icon": "^1.0.0-alpha.9"
62
62
  },
63
63
  "customElements": "custom-elements.json",
64
64
  "scripts": {
@@ -13,3 +13,21 @@ body.modal-open {
13
13
  it-modal:not(:defined) :not([slot='trigger']) {
14
14
  display: none;
15
15
  }
16
+
17
+ it-modal {
18
+ --it-focus-ring-safari-fix: none;
19
+ }
20
+
21
+ /* Rimuovi il flash visivo solo durante l'apertura programmata */
22
+ [part='modal']:focus {
23
+ box-shadow: var(--it-focus-ring-safari-fix) !important;
24
+ outline: var(--it-focus-ring-safari-fix) !important;
25
+ }
26
+ // Impedisce a Safari di mostrare il ring di focus sul container
27
+ // o sui figli quando il focus è indotto da script
28
+ [role='dialog']:focus,
29
+ [role='dialog']:focus-visible,
30
+ *:focus:not(:focus-visible) {
31
+ box-shadow: none !important;
32
+ outline: 0 !important;
33
+ }