@oksigenia/access-panel 0.8.0 → 0.8.1
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/dist/web-component.js +15 -8
- package/dist/web-component.js.map +1 -1
- package/package.json +1 -1
package/dist/web-component.js
CHANGED
|
@@ -981,7 +981,7 @@ var PANEL_CSS = `
|
|
|
981
981
|
font-size: 11px;
|
|
982
982
|
font-weight: 800;
|
|
983
983
|
text-transform: uppercase;
|
|
984
|
-
color: #
|
|
984
|
+
color: #595959;
|
|
985
985
|
}
|
|
986
986
|
/* Screen-reader-only: keeps the category headings in the accessibility tree
|
|
987
987
|
(flat scoped layout) while taking them out of the grid flow so they don't
|
|
@@ -1169,6 +1169,12 @@ body.oks-ls-1 * { letter-spacing: 0.05em !important; }
|
|
|
1169
1169
|
body.oks-ls-2 * { letter-spacing: 0.10em !important; }
|
|
1170
1170
|
body.oks-ls-3 * { letter-spacing: 0.16em !important; }
|
|
1171
1171
|
|
|
1172
|
+
/* Pages that declare a dark theme (Bootstrap 5.3's data-bs-theme, which Moodle
|
|
1173
|
+
5.3's colour modes use, or data-theme): the default focus blue falls under 3:1
|
|
1174
|
+
against a dark background, so the fallback moves to a lighter blue. An explicit
|
|
1175
|
+
--oks-focus-color still wins. */
|
|
1176
|
+
html[data-bs-theme="dark"], html[data-theme="dark"] { --oks-focus-auto: #6ea8fe; }
|
|
1177
|
+
|
|
1172
1178
|
/* Focus highlight colour is themeable via --oks-focus-color (default #005fcc):
|
|
1173
1179
|
set it on :root for a dark theme so the highlight stays visible. The
|
|
1174
1180
|
persistent "all interactive" dashed derives a 45% tint from it; the glow can
|
|
@@ -1178,13 +1184,13 @@ body.oks-a11y-focus button:not(oksigenia-access-panel):not(oksigenia-access-pane
|
|
|
1178
1184
|
body.oks-a11y-focus input,
|
|
1179
1185
|
body.oks-a11y-focus select,
|
|
1180
1186
|
body.oks-a11y-focus textarea {
|
|
1181
|
-
outline: 2px dashed color-mix(in srgb, var(--oks-focus-color, #005fcc) 45%, transparent) !important;
|
|
1187
|
+
outline: 2px dashed color-mix(in srgb, var(--oks-focus-color, var(--oks-focus-auto, #005fcc)) 45%, transparent) !important;
|
|
1182
1188
|
outline-offset: 2px !important;
|
|
1183
1189
|
}
|
|
1184
1190
|
body.oks-a11y-focus *:focus-visible {
|
|
1185
|
-
outline: 3px solid var(--oks-focus-color, #005fcc) !important;
|
|
1191
|
+
outline: 3px solid var(--oks-focus-color, var(--oks-focus-auto, #005fcc)) !important;
|
|
1186
1192
|
outline-offset: 3px !important;
|
|
1187
|
-
box-shadow: 0 0 0 6px var(--oks-focus-glow, color-mix(in srgb, var(--oks-focus-color, #005fcc) 25%, transparent)) !important;
|
|
1193
|
+
box-shadow: 0 0 0 6px var(--oks-focus-glow, color-mix(in srgb, var(--oks-focus-color, var(--oks-focus-auto, #005fcc)) 25%, transparent)) !important;
|
|
1188
1194
|
}
|
|
1189
1195
|
|
|
1190
1196
|
body.oks-a11y-contrast.oks-a11y-focus *:focus,
|
|
@@ -1291,7 +1297,8 @@ ${s}.oks-zoom-2 { font-size: 120% !important; }
|
|
|
1291
1297
|
${s}.oks-zoom-3 { font-size: 135% !important; }
|
|
1292
1298
|
${s}.oks-zoom-4 { font-size: 150% !important; }
|
|
1293
1299
|
`;
|
|
1294
|
-
return
|
|
1300
|
+
return `html[data-bs-theme="dark"], html[data-theme="dark"] { --oks-focus-auto: #6ea8fe; }
|
|
1301
|
+
${zoom}
|
|
1295
1302
|
${s}.oks-lh-1 * { line-height: 1.6 !important; }
|
|
1296
1303
|
${s}.oks-lh-2 * { line-height: 1.9 !important; }
|
|
1297
1304
|
${s}.oks-lh-3 * { line-height: 2.2 !important; }
|
|
@@ -1323,13 +1330,13 @@ ${s}.oks-a11y-focus button,
|
|
|
1323
1330
|
${s}.oks-a11y-focus input,
|
|
1324
1331
|
${s}.oks-a11y-focus select,
|
|
1325
1332
|
${s}.oks-a11y-focus textarea {
|
|
1326
|
-
outline: 2px dashed color-mix(in srgb, var(--oks-focus-color, #005fcc) 45%, transparent) !important;
|
|
1333
|
+
outline: 2px dashed color-mix(in srgb, var(--oks-focus-color, var(--oks-focus-auto, #005fcc)) 45%, transparent) !important;
|
|
1327
1334
|
outline-offset: 2px !important;
|
|
1328
1335
|
}
|
|
1329
1336
|
${s}.oks-a11y-focus *:focus-visible {
|
|
1330
|
-
outline: 3px solid var(--oks-focus-color, #005fcc) !important;
|
|
1337
|
+
outline: 3px solid var(--oks-focus-color, var(--oks-focus-auto, #005fcc)) !important;
|
|
1331
1338
|
outline-offset: 3px !important;
|
|
1332
|
-
box-shadow: 0 0 0 6px var(--oks-focus-glow, color-mix(in srgb, var(--oks-focus-color, #005fcc) 25%, transparent)) !important;
|
|
1339
|
+
box-shadow: 0 0 0 6px var(--oks-focus-glow, color-mix(in srgb, var(--oks-focus-color, var(--oks-focus-auto, #005fcc)) 25%, transparent)) !important;
|
|
1333
1340
|
}
|
|
1334
1341
|
|
|
1335
1342
|
${s}.oks-a11y-contrast, ${s}.oks-a11y-contrast * {
|