@sbb-esta/lyne-elements-dev 4.9.0-dev.1774933669 → 4.9.0-dev.1775022513

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/core.css CHANGED
@@ -2121,6 +2121,32 @@ sbb-flip-card-summary > [slot=image] :is(sbb-image, img):not(.sbb-figure-overlap
2121
2121
  }
2122
2122
  }
2123
2123
 
2124
+ :root.sbb-form-field-required-highlight :is(sbb-form-field, sbb-timetable-form-field):is(:state(empty),[state--empty]):not(:is(:state(readonly),[state--readonly]),
2125
+ :is(:state(disabled),[state--disabled])):has(:where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input)[required]), :is(sbb-form-field, sbb-timetable-form-field):is(:state(empty),[state--empty]):not(:is(:state(readonly),[state--readonly]),
2126
+ :is(:state(disabled),[state--disabled])).sbb-form-field-required-highlight {
2127
+ --sbb-form-field-background-color: color-mix(in srgb, var(--sbb-color-peach) 5%, var(--sbb-background-color-1));
2128
+ --sbb-form-field-background-color: light-dark(
2129
+ color-mix(in srgb, var(--sbb-color-peach) 5%, var(--sbb-background-color-1)),
2130
+ color-mix(in srgb, var(--sbb-color-peach) 10%, var(--sbb-background-color-1))
2131
+ );
2132
+ }
2133
+ :root.sbb-form-field-required-highlight :is(sbb-form-field, sbb-timetable-form-field):is(:state(empty),[state--empty]):not(:is(:state(readonly),[state--readonly]),
2134
+ :is(:state(disabled),[state--disabled])):has(:where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input)[required])[negative], :is(sbb-form-field, sbb-timetable-form-field):is(:state(empty),[state--empty]):not(:is(:state(readonly),[state--readonly]),
2135
+ :is(:state(disabled),[state--disabled])).sbb-form-field-required-highlight[negative] {
2136
+ --sbb-form-field-background-color: color-mix(
2137
+ in srgb,
2138
+ var(--sbb-color-peach) 10%,
2139
+ var(--sbb-background-color-1-negative)
2140
+ );
2141
+ }
2142
+
2143
+ @media (forced-colors: active) {
2144
+ :root.sbb-form-field-required-highlight :is(sbb-form-field, sbb-timetable-form-field):not(:is(:state(readonly),[state--readonly]), :is(:state(disabled),[state--disabled])):has(:where(input, select, textarea, sbb-select, sbb-date-input, sbb-time-input)[required]) label::after, :is(sbb-form-field, sbb-timetable-form-field):not(:is(:state(readonly),[state--readonly]), :is(:state(disabled),[state--disabled])).sbb-form-field-required-highlight label::after {
2145
+ content: " *";
2146
+ color: Highlight;
2147
+ }
2148
+ }
2149
+
2124
2150
  sbb-header + :where(sbb-sidebar-container, sbb-icon-sidebar-container) {
2125
2151
  margin-block-start: var(--sbb-header-height);
2126
2152
  }