@vaadin/vaadin-tabs
Advanced tools
Comparing version 2.1.2 to 3.0.0-alpha1
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-tabs", | ||
"version": "2.1.2", | ||
"version": "3.0.0-alpha1", | ||
"main": "vaadin-tabs.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -51,3 +51,3 @@ /** | ||
static get version() { | ||
return '2.1.2'; | ||
return '3.0.0-alpha1'; | ||
} | ||
@@ -59,2 +59,15 @@ | ||
} | ||
_onKeyup(event) { | ||
const willClick = this.hasAttribute('active'); | ||
super._onKeyup(event); | ||
if (willClick) { | ||
const anchor = this.querySelector('a'); | ||
if (anchor) { | ||
anchor.click(); | ||
} | ||
} | ||
} | ||
} | ||
@@ -61,0 +74,0 @@ |
@@ -145,3 +145,3 @@ /** | ||
static get version() { | ||
return '2.1.2'; | ||
return '3.0.0-alpha1'; | ||
} | ||
@@ -148,0 +148,0 @@ |
@@ -114,2 +114,20 @@ import '@vaadin/vaadin-lumo-styles/color.js'; | ||
:host ::slotted(a[href]) { | ||
display: flex; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
margin: -0.5rem -0.75rem; | ||
padding: 0.5rem 0.75rem; | ||
text-decoration: none; | ||
color: inherit; | ||
outline: none; | ||
} | ||
:host ::slotted(a[href]:hover), | ||
:host ::slotted(a[href]:focus) { | ||
color: inherit; | ||
} | ||
:host ::slotted(iron-icon) { | ||
@@ -145,2 +163,9 @@ margin: 0 4px; | ||
:host([theme~="icon-on-top"]) ::slotted(a) { | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: -0.25rem; | ||
padding-top: 0.25rem; | ||
} | ||
:host([theme~="icon-on-top"]) ::slotted(iron-icon) { | ||
@@ -147,0 +172,0 @@ margin: 0; |
@@ -28,3 +28,2 @@ import '@vaadin/vaadin-lumo-styles/font-icons.js'; | ||
box-shadow: -1px 0 0 0 var(--lumo-contrast-10pct); | ||
display: inline-flex; | ||
} | ||
@@ -31,0 +30,0 @@ |
@@ -100,2 +100,15 @@ import '@vaadin/vaadin-material-styles/color.js'; | ||
:host ::slotted(a) { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
margin: -12px -16px; | ||
padding: 12px 16px; | ||
text-decoration: none; | ||
color: inherit; | ||
outline: none; | ||
} | ||
/* Touch device adjustments */ | ||
@@ -102,0 +115,0 @@ @media (pointer: coarse) { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
43110
772
0
1