Skip to content

Commit

Permalink
use more specific selector to override base tooltip styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored and HaudinFlorence committed Jul 24, 2024
1 parent a24d326 commit 0b38949
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/pages/status/migration/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,19 @@ function Bar({ details }) {
{ORDERED.filter(([key]) => details[key]?.length).map(([key], index) => (
<>
<a
id={"migration-bar-element" + "-" + key}
id={`migration-bar-element-${key}`}
className={styles[`${prefix}${key.replace("-", "_")}`]}
style={{ flex: details[key].length }}
key={index}
alt={TITLES[key]}
></a>
<Tooltip anchorSelect={"#migration-bar-element" + "-" + key}
style={{color: "white", backgroundColor: "var(--ifm-color-gray-700)"}} place="top" className={styles.migration_details_bar_tooltip}>
<div>{TITLES[key]}</div>
</Tooltip>
<Tooltip
anchorSelect={`#migration-bar-element-${key}`}
place="top"
className={styles.migration_details_bar_tooltip}
>
<div>{TITLES[key]}</div>
</Tooltip>
</>
))}
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/pages/status/migration/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,8 @@
font-size: smaller;
content: " ▿";
}

.migration_details_bar .migration_details_bar_tooltip {
color: var(--ifm-color-emphasis-100);
background-color: var(--ifm-color-emphasis-900);
}

0 comments on commit 0b38949

Please sign in to comment.