-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI improvements hover tooltip (#2150)
* move style to style file * move style to style file * fix icon stack * add 99+ notifications messaging * replace span and div in components * fixes based on review * some changes * some fix * post build
- Loading branch information
Showing
22 changed files
with
151 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
74 changes: 72 additions & 2 deletions
74
packages/geoview-core/src/core/components/common/layer-icon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/geoview-core/src/core/components/hover-tooltip/hover-tooltip-styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Theme } from '@mui/material/styles'; | ||
|
||
// ? I doubt we want to define an explicit type for style properties? | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export const getSxClasses = (theme: Theme): any => ({ | ||
tooltipItem: { | ||
color: theme.palette.geoViewColor.bgColor.light[900], | ||
background: theme.palette.geoViewColor.bgColor.dark[900], | ||
opacity: 0.9, | ||
fontSize: theme.palette.geoViewFontSize.default, | ||
padding: '3px 8px', | ||
borderRadius: '5px', | ||
textAlign: 'center', | ||
maxWidth: '350px', | ||
maxHeight: '60px', | ||
position: 'absolute', | ||
display: 'flex', | ||
top: '-5px', | ||
left: '3px', | ||
}, | ||
tooltipText: { | ||
fontSize: theme.palette.geoViewFontSize.default, | ||
color: theme.palette.geoViewColor.bgColor.light[900], | ||
textOverflow: 'ellipsis', | ||
whiteSpace: 'nowrap', | ||
overflow: 'hidden', | ||
padding: '5px', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.