@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 +2 -2
- package/package.json +8 -7
- package/src/vaadin-tab.js +10 -0
- package/src/vaadin-tabs.d.ts +1 -1
- package/src/vaadin-tabs.js +1 -1
- package/theme/lumo/vaadin-tab-styles.js +12 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
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/
|
|
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/
|
|
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
|
|
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/
|
|
40
|
-
"@vaadin/
|
|
41
|
-
"@vaadin/
|
|
42
|
-
"@vaadin/vaadin-
|
|
43
|
-
"@vaadin/vaadin-
|
|
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": "
|
|
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>
|
package/src/vaadin-tabs.d.ts
CHANGED
|
@@ -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
|
|
package/src/vaadin-tabs.js
CHANGED
|
@@ -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