Skip to content
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

Update tour navigation dots and button to use theme's primary color #228

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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