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

Show cookie settings by click on a respective button shown in footer #394

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jbicker
Copy link
Contributor

@jbicker jbicker commented Mar 3, 2021

A "Manage Cookies" link gets shown in footer. A click on it opens the cookie consent banner again.

Still work in progress:

  • clean up footer by hiding some items generally in a dropdown field (open for other suggestions)
  • when user clicks on a banner button after reopening it it does not react - are the respective handlers removed after first consent action?

Fixes #220

@chrisguindon chrisguindon changed the base branch from master to main March 8, 2021 16:24
@chrisguindon chrisguindon requested review from autumnfound and removed request for chrisguindon March 15, 2021 13:19
}
}));

const FooterContent: React.FunctionComponent<{ expanded: boolean }> = ({ expanded }) => {
const classes = footerStyle();
const theme = useTheme();
const isSmallDisplay = useMediaQuery(theme.breakpoints.down('sm'));
const isSmallDisplay = useMediaQuery(theme.breakpoints.down('lg'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't change the definition of isSmallDisplay to encompass up to large displays, as this will trigger on many devices where it is not intentional. What was the reasoning behind this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That variable is only to decide about the behaviour of the menu. Because I added the "Manage Cookies" item here, and the footer got too full for the lg size, I decided to switch to the collapsed menu in the footer at a larger state. Admittedly the naming of that variable is not suitable anymore.

@brianking
Copy link

@jbicker Is this something that still requires attention?

@jbicker
Copy link
Contributor Author

jbicker commented Jan 13, 2022

@jbicker Is this something that still requires attention?

Not as far as I know.
Honestly I don't know what the current behaviour should be as I wasn't involved in this project for a longer time now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Cookie Settings Not Easily Discoverable
4 participants