Skip to content

Commit

Permalink
Merge pull request #228 from microbiomedata/225-button-for-dismissing…
Browse files Browse the repository at this point in the history
…-tour-uses-incorrect-background-color-android
  • Loading branch information
eecavanna authored Feb 11, 2025
2 parents 4528110 + de2dbf5 commit e24c01f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/AppTourProvider/AppTourProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ const AppTourProvider: React.FC<ProviderProps> = ({
popover: (base) => ({
...base,
borderRadius: 4,
// Make the tour text be legible over its background.
color: "var(--ion-color-primary-contrast)",
// Make the navigation dots have the same color as the "Dismiss" button's background.
// Reference: https://docs.react.tours/tour/examples#custom-styles
"--reactour-accent": "var(--ion-color-primary)",
}),
// Style the hole in the mask (seems to impact light mode only 🤷).
maskArea: (base) => ({ ...base, rx: 4 }),
Expand Down Expand Up @@ -74,7 +78,6 @@ const AppTourProvider: React.FC<ProviderProps> = ({
<IonButton
size={"small"}
fill={"solid"}
color={"light"}
onClick={() => props.setIsOpen(false)}
>
Dismiss
Expand Down

0 comments on commit e24c01f

Please sign in to comment.