@vaadin/a11y-base 24.1.2 → 24.2.0-alpha2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/a11y-base",
3
- "version": "24.1.2",
3
+ "version": "24.2.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "~24.1.2",
35
+ "@vaadin/component-base": "24.2.0-alpha2",
36
36
  "lit": "^2.0.0"
37
37
  },
38
38
  "devDependencies": {
@@ -40,5 +40,5 @@
40
40
  "@vaadin/testing-helpers": "^0.4.2",
41
41
  "sinon": "^13.0.2"
42
42
  },
43
- "gitHead": "2d52aec53816cf8ee5cc4e08344adfb0c0b4d2f7"
43
+ "gitHead": "b8378bd2267728e172012bcb2ea45c3e5a6e590a"
44
44
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const screenReaderOnly: CSSResult;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+
7
+ /**
8
+ * @note Taken from Gaël Poupard gist
9
+ * @author Gaël Poupard
10
+ * @see https://gist.github.com/ffoodd/000b59f431e3e64e4ce1a24d5bb36034
11
+ */
12
+ import { css } from 'lit';
13
+
14
+ export const screenReaderOnly = css`
15
+ .sr-only {
16
+ border: 0 !important;
17
+ clip: rect(1px, 1px, 1px, 1px) !important;
18
+ -webkit-clip-path: inset(50%) !important;
19
+ clip-path: inset(50%) !important;
20
+ height: 1px !important;
21
+ margin: -1px !important;
22
+ overflow: hidden !important;
23
+ padding: 0 !important;
24
+ position: absolute !important;
25
+ width: 1px !important;
26
+ white-space: nowrap !important;
27
+ }
28
+ `;