-
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
fix(#4049): Express theme should render a border on Popovers and Dialogs with forced-colors: active #4050
Changes from all commits
4f27e9d
fab73b1
83885fb
4e2fffd
547b6f1
e035bc5
e670de7
57bc561
796778f
baf2ea0
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 |
---|---|---|
|
@@ -21,3 +21,12 @@ governing permissions and limitations under the License. | |
.spectrum-Rule--small { | ||
background-color: var(--spectrum-rule-small-background-color); | ||
} | ||
|
||
@media (forced-colors: active) { | ||
.spectrum-Rule { | ||
forced-color-adjust: none; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see this doing anything? at least, not in chrome's emulation of forced colors There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should render the rule. Without |
||
--spectrum-rule-large-background-color: CanvasText; | ||
--spectrum-rule-medium-background-color: CanvasText; | ||
--spectrum-rule-small-background-color: CanvasText; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,9 @@ | |
display: flex; | ||
flex-direction: column; | ||
|
||
overflow-x: hidden; | ||
overflow-y: auto; | ||
|
||
border-radius: var(--spectrum-tray-full-width-border-radius) var(--spectrum-tray-full-width-border-radius) var(--spectrum-tray-border-radius) var(--spectrum-tray-border-radius); | ||
|
||
/* Start offset by the animation distance */ | ||
|
@@ -94,3 +97,10 @@ | |
border-radius: var(--spectrum-tray-border-radius); | ||
} | ||
} | ||
|
||
@media (forced-colors: active) { | ||
.spectrum-Tray { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think you're missing an |
||
border-width: var(--spectrum-alias-border-size-thin); | ||
border-style: solid solid none; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -162,3 +162,9 @@ | |||
.express.large { | ||||
--spectrum-switch-track-width: 36px; | ||||
} | ||||
|
||||
@media (forced-colors: active) { | ||||
.express.express { | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why isn't one enough? what is it conflicting with? the reason I ask is because if it conflicts when there is only 1, then I suspect there exists a case where it will conflict with 3 levels of specificity, but I want to verify that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Testing the ActionMenu story using the Express theme, the border does not render on the ActionMenu popover without this added specificity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additional context,
In order to overwrite this again with |
||||
--spectrum-popover-border-size: var(--spectrum-alias-border-size-thin); | ||||
} | ||||
} |
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 make this generic and give it a border-color variable that is transparent
then override that variable in the forced-colors media query to be the right color