8000 fix(calendar-month): add current/range HC borders by mcoker · Pull Request #7799 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(calendar-month): add current/range HC borders#7799

Merged
mcoker merged 3 commits intopatternfly:mainfrom
mcoker:issue-7793
Sep 5, 2025
Merged

fix(calendar-month): add current/range HC borders#7799
mcoker merged 3 commits intopatternfly:mainfrom
mcoker:issue-7793

Conversation

@mcoker
Copy link
Contributor
@mcoker mcoker commented Sep 5, 2025

fixes #7793

@mcoker mcoker requested review from lboehling and srambach September 5, 2025 03:39
@patternfly-build
Copy link
Collaborator
patternfly-build commented Sep 5, 2025

Copy link
@lboehling lboehling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

Comment on lines +160 to +164
&::after {
border: solid var(--#{$calendar-month}__dates-cell--after--BorderColor);
border-width: var(--#{$calendar-month}__dates-cell--after--BorderBlockStartWidth) 0 var(--#{$calendar-month}__dates-cell--after--BorderBlockEndWidth);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this bother anyone else enough to break convention and move it to the ::before?

Image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had it on the before... before... but I had errantly put it on disabled cells, too, and the disabled circle overlapped the border and made it look weird. It looked like this

Screenshot 2025-09-05 at 12 57 48 PM

This is what it looked like on disabled cells if the border is on top of the date circles

Screenshot 2025-09-05 at 1 01 45 PM

So it can make the border look weird if the circle overlaps the border... but I think your comment is probably more correct. I'd probably expect any border/shape from a cell to overlap the border - not the other way around.

FWIW this is what a "hovered" date looks like if the border is on the before (hovering "17")

Screenshot 2025-09-05 at 1 00 08 PM

I think it's fine to move the border to the before, but FWIW this is what that focused element looks like with the border behind - can't really tell at regular zoom (to me anyways) and even when zoomed in, it's hard to really see.

Screenshot 2025-09-05 at 12 56 32 PM

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yeah the disabled ones cause a weird visual effect when the border is beneath. Given that, I'd stick with how you have it as the lesser of evils 😈

Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works for me!

@mcoker mcoker merged commit e993388 into patternfly:main Sep 5, 2025
4 checks passed
@mcoker mcoker deleted the issue-7793 branch September 5, 2025 19:59
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.3.0-prerelease.58 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Calendar month - missing border on current date and date range

4 participants

0