@vaadin/vaadin-lumo-styles
Advanced tools
Comparing version 24.7.0-alpha5 to 24.7.0-alpha6
@@ -71,3 +71,23 @@ /** | ||
/* Focus-ring */ | ||
/* Opt-in focus-ring when using pointer devices */ | ||
/* This applies a focus-ring as box-shadow when the element is focused, but | ||
the ring is only visible / has a width when the respective CSS property is | ||
"enabled" using a value of 1 */ | ||
:host([focused]) [part='input-field'] { | ||
/* Borders are implemented using box-shadows as well. To avoid overriding | ||
the border on focus, even if the pointer focus-ring is disabled, we need to: | ||
- Duplicate the border box shadow for this rule | ||
- Remove the border (by using width of 0) when the focus-ring is visible, | ||
which is the same behavior as for the keyboard focus-ring below | ||
- Apply the border when the focus ring is not visible | ||
*/ | ||
--_pointer-focus-visible: clamp(0, var(--lumo-input-field-pointer-focus-visible, 0), 1); | ||
--_conditional-border-width: calc(calc(1 - var(--_pointer-focus-visible)) * var(--_input-border-width)); | ||
--_conditional-focus-ring-width: calc(var(--_pointer-focus-visible) * var(--_focus-ring-width)); | ||
box-shadow: | ||
inset 0 0 0 var(--_conditional-border-width) var(--_input-border-color), | ||
0 0 0 var(--_conditional-focus-ring-width) var(--_focus-ring-color); | ||
} | ||
/* Focus-ring when using keyboard navigation */ | ||
:host([focus-ring]) [part='input-field'] { | ||
@@ -107,8 +127,5 @@ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color); | ||
--vaadin-input-field-border-color: var(--lumo-error-color); | ||
--_focus-ring-color: var(--lumo-error-color-50pct); | ||
} | ||
:host([invalid][focus-ring]) [part='input-field'] { | ||
box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct); | ||
} | ||
:host([input-prevented]) [part='input-field'] { | ||
@@ -115,0 +132,0 @@ animation: shake 0.15s infinite; |
{ | ||
"name": "@vaadin/vaadin-lumo-styles", | ||
"version": "24.7.0-alpha5", | ||
"version": "24.7.0-alpha6", | ||
"publishConfig": { | ||
@@ -44,5 +44,5 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.7.0-alpha5", | ||
"@vaadin/icon": "24.7.0-alpha5", | ||
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha5" | ||
"@vaadin/component-base": "24.7.0-alpha6", | ||
"@vaadin/icon": "24.7.0-alpha6", | ||
"@vaadin/vaadin-themable-mixin": "24.7.0-alpha6" | ||
}, | ||
@@ -56,3 +56,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "f9fa2bd652780a344d5e0329b8aafbcbd72ebd14" | ||
"gitHead": "6255a512997a648da91fed37de4d5000809eaebf" | ||
} |
@@ -324,15 +324,15 @@ /** | ||
@media (min-width: 640px) { | ||
.sm\\items-baseline { | ||
.sm\\:items-baseline { | ||
align-items: baseline; | ||
} | ||
.sm\\items-center { | ||
.sm\\:items-center { | ||
align-items: center; | ||
} | ||
.sm\\items-end { | ||
.sm\\:items-end { | ||
align-items: flex-end; | ||
} | ||
.sm\\items-start { | ||
.sm\\:items-start { | ||
align-items: flex-start; | ||
} | ||
.sm\\items-stretch { | ||
.sm\\:items-stretch { | ||
align-items: stretch; | ||
@@ -385,15 +385,15 @@ } | ||
@media (min-width: 768px) { | ||
.md\\items-baseline { | ||
.md\\:items-baseline { | ||
align-items: baseline; | ||
} | ||
.md\\items-center { | ||
.md\\:items-center { | ||
align-items: center; | ||
} | ||
.md\\items-end { | ||
.md\\:items-end { | ||
align-items: flex-end; | ||
} | ||
.md\\items-start { | ||
.md\\:items-start { | ||
align-items: flex-start; | ||
} | ||
.md\\items-stretch { | ||
.md\\:items-stretch { | ||
align-items: stretch; | ||
@@ -445,15 +445,15 @@ } | ||
@media (min-width: 1024px) { | ||
.lg\\items-baseline { | ||
.lg\\:items-baseline { | ||
align-items: baseline; | ||
} | ||
.lg\\items-center { | ||
.lg\\:items-center { | ||
align-items: center; | ||
} | ||
.lg\\items-end { | ||
.lg\\:items-end { | ||
align-items: flex-end; | ||
} | ||
.lg\\items-start { | ||
.lg\\:items-start { | ||
align-items: flex-start; | ||
} | ||
.lg\\items-stretch { | ||
.lg\\:items-stretch { | ||
align-items: stretch; | ||
@@ -505,15 +505,15 @@ } | ||
@media (min-width: 1280px) { | ||
.xl\\items-baseline { | ||
.xl\\:items-baseline { | ||
align-items: baseline; | ||
} | ||
.xl\\items-center { | ||
.xl\\:items-center { | ||
align-items: center; | ||
} | ||
.xl\\items-end { | ||
.xl\\:items-end { | ||
align-items: flex-end; | ||
} | ||
.xl\\items-start { | ||
.xl\\:items-start { | ||
align-items: flex-start; | ||
} | ||
.xl\\items-stretch { | ||
.xl\\:items-stretch { | ||
align-items: stretch; | ||
@@ -565,15 +565,15 @@ } | ||
@media (min-width: 1536px) { | ||
.\\32xl\\items-baseline { | ||
.\\32xl\\:items-baseline { | ||
align-items: baseline; | ||
} | ||
.\\32xl\\items-center { | ||
.\\32xl\\:items-center { | ||
align-items: center; | ||
} | ||
.\\32xl\\items-end { | ||
.\\32xl\\:items-end { | ||
align-items: flex-end; | ||
} | ||
.\\32xl\\items-start { | ||
.\\32xl\\:items-start { | ||
align-items: flex-start; | ||
} | ||
.\\32xl\\items-stretch { | ||
.\\32xl\\:items-stretch { | ||
align-items: stretch; | ||
@@ -580,0 +580,0 @@ } |
Sorry, the diff of this file is not supported yet
194138
6646
+ Added@vaadin/component-base@24.7.0-alpha6(transitive)
+ Added@vaadin/icon@24.7.0-alpha6(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.7.0-alpha6(transitive)
- Removed@vaadin/component-base@24.7.0-alpha5(transitive)
- Removed@vaadin/icon@24.7.0-alpha5(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.7.0-alpha5(transitive)
Updated@vaadin/icon@24.7.0-alpha6