Skip to content

Commit

Permalink
Override CC styles to make popup hidden more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Jul 27, 2020
1 parent 37e3f5c commit d4d0d51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/components/appBootstrap/UniversalGlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ const UniversalGlobalStyles: React.FunctionComponent<Props> = (props): JSX.Eleme
opacity: 1 !important; // Overrides default bootstrap behaviour to avoid make-believe SSR doesn't work on the demo, when JS is disabled - See https://github.com/UnlyEd/next-right-now/issues/9
}
}
// Overrides of CookieConsent
.cc-revoke {
border: 1px solid lightgrey
}
`}
/>
);
Expand Down
10 changes: 8 additions & 2 deletions src/pages/[locale]/examples/built-in-features/analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ const ExampleAnalyticsPage: NextPage<Props> = (props): JSX.Element => {
</p>

<Button
onClick={(): void => logEvent('analytics-button-test-event')}
onClick={(): void => {
console.log('Button click');
logEvent('analytics-button-test-event');
}}
>
Click me
</Button>
Expand All @@ -233,7 +236,10 @@ const ExampleAnalyticsPage: NextPage<Props> = (props): JSX.Element => {
<Amplitude>
{({ logEvent }): JSX.Element => (
<Button
onClick={(): void => logEvent('analytics-button-test-event')}
onClick={(): void => {
console.log('Button click');
logEvent('analytics-button-test-event');
}}
>
Click me
</Button>
Expand Down

0 comments on commit d4d0d51

Please sign in to comment.