Skip to content

Commit 890353b

Browse files
authored
fix bg color for tool picker dropdown (#58347)
1 parent 8fedd4f commit 890353b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.container {
2+
// target the ActionList dropdown that appears when UnderlineNav overflows
3+
ul[class*="prc-ActionList-ActionList"] {
4+
background-color: var(
5+
--overlay-bgColor,
6+
var(--color-canvas-overlay, #ffffff)
7+
) !important;
8+
}
9+
}

src/tools/components/InArticlePicker.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { sendEvent } from '@/events/components/events'
55
import { EventType } from '@/events/types'
66
import { useRouter } from 'next/router'
77

8+
import styles from './InArticlePicker.module.scss'
9+
810
type Option = {
911
value: string
1012
label: string
@@ -141,7 +143,7 @@ export const InArticlePicker = ({
141143
const params = new URLSearchParams(asPathQuery)
142144

143145
return (
144-
<div data-testid={`${queryStringKey}-picker`}>
146+
<div data-testid={`${queryStringKey}-picker`} className={styles.container}>
145147
{/* The key attribute is required for a bug in UnderlineNav that doesn't render the component when there are changes to the items. */}
146148
<UnderlineNav key={router.asPath} {...sharedContainerProps}>
147149
{options.map((option) => {

0 commit comments

Comments
 (0)