Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Sep 16, 2024
1 parent 2bce525 commit 3c54a59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ActionBar/DarkModeGuideCue.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const DarkModeGuideCue = ({ guideCueRef }) => {
useEffect(() => {
if (isMobile) return;
const darkModeAnnounced = getLocalValue(DARK_MODE_ANNOUNCED);
if (darkModeAnnounced !== true) setIsOpen(true);
if (!darkModeAnnounced) setIsOpen(true);
setLocalValue(DARK_MODE_ANNOUNCED, true);
}, [isMobile]);

Expand All @@ -85,7 +85,6 @@ const DarkModeGuideCue = ({ guideCueRef }) => {
refEl={guideCueRef}
numberOfSteps={1}
currentStep={1}
popoverZIndex={20000}
portalRef={ref}
scrollContainer={guideCueRef?.current}
portalContainer={guideCueRef?.current}
Expand Down Expand Up @@ -116,7 +115,6 @@ const DarkModeGuideCue = ({ guideCueRef }) => {
className={cx(css`
color: ${palette.gray.base};
&:hover,
&:focus-visible,
&:active {
color: ${palette.black};
}
Expand Down

0 comments on commit 3c54a59

Please sign in to comment.