@vaadin/tabs 24.0.5 → 24.1.0-alpha10

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/README.md CHANGED
@@ -16,7 +16,7 @@ A web component for organizing and grouping content into sections.
16
16
  </vaadin-tabs>
17
17
  ```
18
18
 
19
- [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/tabs/screenshot.png" width="355" alt="Screenshot of vaadin-tabs">](https://vaadin.com/docs/latest/components/tabs)
19
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/main/packages/tabs/screenshot.png" width="355" alt="Screenshot of vaadin-tabs">](https://vaadin.com/docs/latest/components/tabs)
20
20
 
21
21
  ## Installation
22
22
 
@@ -35,7 +35,7 @@ import '@vaadin/tabs';
35
35
  ## Themes
36
36
 
37
37
  Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/styling), Lumo and Material.
38
- The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/tabs/vaadin-tabs.js) of the package uses the Lumo theme.
38
+ The [main entrypoint](https://github.com/vaadin/web-components/blob/main/packages/tabs/vaadin-tabs.js) of the package uses the Lumo theme.
39
39
 
40
40
  To use the Material theme, import the component from the `theme/material` folder:
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/tabs",
3
- "version": "24.0.5",
3
+ "version": "24.1.0-alpha10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,11 +36,12 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "~24.0.5",
40
- "@vaadin/item": "~24.0.5",
41
- "@vaadin/vaadin-lumo-styles": "~24.0.5",
42
- "@vaadin/vaadin-material-styles": "~24.0.5",
43
- "@vaadin/vaadin-themable-mixin": "~24.0.5"
39
+ "@vaadin/a11y-base": "24.1.0-alpha10",
40
+ "@vaadin/component-base": "24.1.0-alpha10",
41
+ "@vaadin/item": "24.1.0-alpha10",
42
+ "@vaadin/vaadin-lumo-styles": "24.1.0-alpha10",
43
+ "@vaadin/vaadin-material-styles": "24.1.0-alpha10",
44
+ "@vaadin/vaadin-themable-mixin": "24.1.0-alpha10"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@esm-bundle/chai": "^4.3.4",
@@ -51,5 +52,5 @@
51
52
  "web-types.json",
52
53
  "web-types.lit.json"
53
54
  ],
54
- "gitHead": "e384c1b5c02e01a4382a433f727d075de9a4ee97"
55
+ "gitHead": "12e39be7eb3b49c68708e8ca3de2fb22e91051a1"
55
56
  }
package/src/vaadin-tab.js CHANGED
@@ -49,6 +49,16 @@ class Tab extends ElementMixin(ThemableMixin(ItemMixin(ControllerMixin(PolymerEl
49
49
  :host([hidden]) {
50
50
  display: none !important;
51
51
  }
52
+
53
+ @media (forced-colors: active) {
54
+ :host([focused]) {
55
+ outline: 1px solid;
56
+ outline-offset: -1px;
57
+ }
58
+ :host([selected]) {
59
+ border-bottom: 2px solid;
60
+ }
61
+ }
52
62
  </style>
53
63
  <slot></slot>
54
64
  <slot name="tooltip"></slot>
@@ -3,8 +3,8 @@
3
3
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
+ import { ListMixin } from '@vaadin/a11y-base/src/list-mixin.js';
6
7
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
7
- import { ListMixin } from '@vaadin/component-base/src/list-mixin.js';
8
8
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
9
9
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
10
10
 
@@ -6,9 +6,9 @@
6
6
  import './vaadin-tab.js';
7
7
  import { afterNextRender } from '@polymer/polymer/lib/utils/render-status.js';
8
8
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
9
+ import { ListMixin } from '@vaadin/a11y-base/src/list-mixin.js';
9
10
  import { getNormalizedScrollLeft } from '@vaadin/component-base/src/dir-utils.js';
10
11
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
- import { ListMixin } from '@vaadin/component-base/src/list-mixin.js';
12
12
  import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
13
13
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
14
 
@@ -44,6 +44,18 @@ registerStyles(
44
44
  min-width: 0;
45
45
  }
46
46
 
47
+ @media (forced-colors: active) {
48
+ :host([focused]) {
49
+ outline: 1px solid;
50
+ outline-offset: -1px;
51
+ }
52
+
53
+ :host([orientation='vertical'][selected]) {
54
+ border-bottom: none;
55
+ border-left: 2px solid;
56
+ }
57
+ }
58
+
47
59
  :host(:hover),
48
60
  :host([focus-ring]) {
49
61
  color: var(--lumo-body-text-color);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabs",
4
- "version": "24.0.5",
4
+ "version": "24.1.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabs",
4
- "version": "24.0.5",
4
+ "version": "24.1.0-alpha10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {