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

Tooltip CSS is broken with new CSS customisation #468

Closed
tfrancart opened this issue Apr 6, 2023 · 0 comments
Closed

Tooltip CSS is broken with new CSS customisation #468

tfrancart opened this issue Apr 6, 2023 · 0 comments
Labels
kind: Bug 🐞 Bug what: UI/UX Affecting the UI or UX

Comments

@tfrancart
Copy link
Contributor

CSS themes assign variables on the

element with class Sparnatural:

.Sparnatural {
/**
 * Color of the criteria arrows (orange)
 **/
 --primary-color-main: rgba(252, 61, 14, 0.781);

 /**
  * Color of the "unselect" buttons in criterias (dark orange)
  **/
--primary-color-important: rgb(139, 40, 9) ;
 
 /**
  * Color of the bottom : folded variable selector, and of a selected value in a criteria (light orange)
  **/
--primary-color-medium: rgb(255, 210, 157) ;

...
}

Tippy CSS customisation for the tooltip relies on these var in sparnatural.scss:

//tippy overides
.tippy-box[data-theme~='sparnatural'] {
    background-color: var(--primary-color-light);
    color: #000;
	border-radius: 5px;
	border: 1px dashed var(--primary-color-main);
	padding: 2px;
	font-size:0.75em;
  }

BUT : the tippy div is outside of the Sparnatural div, hence the variables are not found.

@tfrancart tfrancart added kind: Bug 🐞 Bug what: UI/UX Affecting the UI or UX labels Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: Bug 🐞 Bug what: UI/UX Affecting the UI or UX
Projects
None yet
Development

No branches or pull requests

1 participant