-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(#4049): Express theme should render a border on Popovers and Dialogs with forced-colors: active #4050
Conversation
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
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.
We may be able to fix this by adding the following to @media (forced-colors: active) {
.spectrum-Popover {
overflow: hidden;
}
} Also, the mixed up colors for the ComboBox "Show suggestions" button in forced-colors mode will need to be resolved. |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
@@ -144,3 +144,10 @@ governing permissions and limitations under the License. | |||
margin-left: calc(var(--spectrum-global-dimension-size-150) * -1); | |||
} | |||
} | |||
|
|||
@media screen and (max-height: 400px) { |
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.
where did this value come from?
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.
Perhaps from here:
@media screen and (max-height: 400px) { |
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.
Verified the border/border radius on a variety of Popovers/Dialogs/Modals/Trays in WHCM. A bit concerned that there are several non forced-colors: active
scoped css changes but Chromatic seems to run clean and doesn't look like there are any noticeable differences when I checked manually. Just one thing I noticed with the combobox popover, lemme know if that issue wasn't fixable with the same overflow: hidden
.spectrum-Dropdown-popover { | ||
overflow: hidden; | ||
} |
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.
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.
It should probably have the same overflow: hidden
to fix the corner defects.
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.
See e035bc5
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.
I think we can avoid the need for this. In 57bc561 I made it so popovers are overflow: hidden
by default, except if they have an arrow. In that case, the dialog inside is overflow: hidden
as well. That also fixes the issue with overflow that you had added the extra padding for at 400px breakpoint. The dialog itself should never scroll, because either the content or the grid inside does.
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'identifier', name: 'Column' } |
Closes #4049
✅ Pull Request Checklist:
📝 Test Instructions:
forced-colors: active
.forced-colors: active
.🧢 Your Project:
Adobe/Accessibility