Style: Update Toolhint Z-Index and Add Toolhint for GlobalEnvironmentSelector (#3284)

* style: add z-index for `ToolHint`

* chore: add toohint for global env selector
This commit is contained in:
Pragadesh-45 2024-10-14 12:06:06 +05:30 committed by GitHub
parent 2fc79e0e7f
commit 43cb2b82f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -68,7 +68,12 @@ const CollectionToolBar = ({ collection }) => {
<IconSettings className="cursor-pointer" size={18} strokeWidth={1.5} onClick={viewCollectionSettings} /> <IconSettings className="cursor-pointer" size={18} strokeWidth={1.5} onClick={viewCollectionSettings} />
</ToolHint> </ToolHint>
</span> </span>
<span>
<ToolHint text="Global Environments" toolhintId="GlobalEnvironmentsToolhintId">
<GlobalEnvironmentSelector /> <GlobalEnvironmentSelector />
</ToolHint>
</span>
<EnvironmentSelector collection={collection} /> <EnvironmentSelector collection={collection} />
</div> </div>
</div> </div>

View File

@ -22,6 +22,7 @@ const ToolHint = ({
...tooltipStyle, ...tooltipStyle,
fontSize: '0.75rem', fontSize: '0.75rem',
padding: '0.25rem 0.5rem', padding: '0.25rem 0.5rem',
zIndex: 9999,
backgroundColor: toolhintBackgroundColor, backgroundColor: toolhintBackgroundColor,
color: toolhintTextColor color: toolhintTextColor
}; };