@sebgroup/green-core 2.28.1 → 2.28.2-rc.20260203113139123

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.
@@ -148,7 +148,7 @@ let GdsCalendar = class extends GdsElement {
148
148
  );
149
149
  const isOutsideMinMax = (day < this.min || day > this.max) && !isSameDay(day, this.min) && !isSameDay(day, this.max);
150
150
  const isWeekend = day.getDay() === 0 || day.getDay() === 6;
151
- const isDisabled = displayOptions.disabled || isOutsideCurrentMonth || isOutsideMinMax || this.disabledWeekends && isWeekend;
151
+ const isDisabled = displayOptions.disabled || isOutsideMinMax || this.disabledWeekends && isWeekend;
152
152
  const shouldRenderBlank = this.hideExtraneousDays && isOutsideCurrentMonth;
153
153
  return shouldRenderBlank ? html`<td inert></td>` : html`
154
154
  <td
@@ -159,7 +159,8 @@ let GdsCalendar = class extends GdsElement {
159
159
  small: Boolean(this.size === "small"),
160
160
  "custom-date": Boolean(customization),
161
161
  disabled: Boolean(isDisabled),
162
- today: isSameDay(currentDate, day)
162
+ today: isSameDay(currentDate, day),
163
+ "outside-month": isOutsideCurrentMonth
163
164
  })}"
164
165
  ?disabled=${isDisabled}
165
166
  tabindex="${isSameDay(this.focusedDate, day) ? 0 : -1}"
@@ -136,6 +136,10 @@ const style = css`
136
136
  cursor: default;
137
137
  }
138
138
 
139
+ &.outside-month:not(.disabled) {
140
+ color: var(--gds-sys-color-content-neutral-02);
141
+ }
142
+
139
143
  &[aria-selected='false']:active:not(.disabled) {
140
144
  background: color-mix(
141
145
  in srgb,
@@ -446,6 +446,7 @@ let Dropdown = class extends GdsFormControlElement {
446
446
  this.options[0] && (this.options[0].selected = true);
447
447
  this.value = this.options[0]?.value;
448
448
  }
449
+ this._handleValueChange();
449
450
  }
450
451
  _handleValueChange() {
451
452
  this._elListbox.then((listbox) => {