-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Calendar: fix disabled styles #77138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -227,13 +227,14 @@ $wp-components-calendar-preview-border-color: color-mix(in srgb, $components-col | |
|
|
||
| // Selected date button (individual date, range start, and range end) | ||
| .components-calendar__day--selected:not(.components-calendar__range-middle) { | ||
| &:has( | ||
| .components-calendar__day-button, | ||
| .components-calendar__day-button:hover:not(:disabled) | ||
| ) { | ||
| &:has(.components-calendar__day-button:not(:disabled)) { | ||
| color: $components-color-foreground-inverted; | ||
| } | ||
|
|
||
| &:has(.components-calendar__day-button:disabled) { | ||
| color: $components-color-disabled; | ||
| } | ||
|
Comment on lines
229
to
+236
|
||
|
|
||
| .components-calendar__day-button { | ||
| &::before { | ||
| background-color: $components-color-foreground; | ||
|
|
@@ -244,7 +245,7 @@ $wp-components-calendar-preview-border-color: color-mix(in srgb, $components-col | |
| } | ||
|
|
||
| &:disabled::before { | ||
| background-color: $components-color-disabled; | ||
| background-color: $components-color-gray-100; | ||
| } | ||
|
|
||
| &:hover:not(:disabled)::before { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog entry formatting is inconsistent with surrounding bullets (which wrap the PR link in parentheses and end with a period). Please update this line to match the existing pattern so tooling and readability stay consistent.