-
Notifications
You must be signed in to change notification settings - Fork 3
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
Csmccarthy/z index config #147
Conversation
This pull request has been linked to 1 task:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Just realized this is going to need a version bump for airgap.js-types, still need to figure out how to make a new release. That'll be a Monday thing |
Once you've bumped the version in transcend-io/airgap.js-types#99 and merged it, bump the version at consent-manager-ui/package.json Line 47 in c12364f
Oh, and don't forget to bump the version at consent-manager-ui/package.json Line 10 in c12364f
consent-manager-ui at https://github.com/transcend-io/main/blob/dev/consent-manager/ui/package.json#L29. That will probably mean bumping the version of airgap.js in https://github.com/transcend-io/main/blob/dev/consent-manager/airgap.js/package.json#L5 and adding a corresponding entry to the AIRGAP_VERSION_CHANGELOG at https://github.com/transcend-io/main/blob/dev/frontend-support/cm-types/src/constants.ts#L152
|
…o csmccarthy/z-index-config
src/components/App.tsx
Outdated
@@ -15,6 +14,7 @@ import { ConsentManagerLanguageKey } from '@transcend-io/internationalization'; | |||
import { makeConsentManagerAPI } from '../api'; | |||
import { TranscendEventTarget } from '../event-target'; | |||
import { useState } from 'preact/hooks'; | |||
import { MergedConsentManagerConfig } from 'src/types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is importing src @csmccarthy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ./types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@csmccarthy this is excellent!!
For the stuff you mentioned in future improvements, I'd make Height tasks as appropriate under "cm-ui" and "tech-debt" lists.
Related Issues
links https://transcend.height.app/T-30079
Internal Changelog
Context: Eventbrite took umbridge with the consent banner staying at the maximum z-index and blocking a payment modal of theirs
Fix: We added a new config option to allow for a manually specified z-index on the consent banner
Notes: We don't want to make this easy to enable, since in general "hiding" the consent banner like this is a bad pattern to follow. There may or may not be a better place to set this config value to better achieve that goal of making hiding sufficiently difficult (if there is, let me know).
Additionally, I made a change to when the playground's loadOptions are retrieved from localStorage -- we waited until after mount to retrieve them, when the consent manager ui had already initialized with the base config, so any changes made in the playground's loadOptions editing modal didn't appear. Moving that retrieval into the index before the ui script is initialized seemed to do the trick
Future Improvements: