-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* example tooltip next to focal species form field on survey form * permits and survey participation * tooltipping ctd * tooltip ctd1 * more tooltipping * tooltip testing * helpbutton for typography stack * help button stack for box items * fixing help button formatting * tooltipping on edit survey page * make fix * make fix * make fix * wip: update text * move tooltips into autocompletes and add helptext * update survey form tooltips * Fix app tests --------- Co-authored-by: Macgregor Aubertin-Young <[email protected]> Co-authored-by: Macgregor Aubertin-Young <[email protected]> Co-authored-by: Nick Phura <[email protected]>
- Loading branch information
1 parent
66b47fc
commit 4c79a59
Showing
30 changed files
with
317 additions
and
325 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Stack, { StackProps } from '@mui/material/Stack'; | ||
import HelpButtonTooltip from 'components/buttons/HelpButtonTooltip'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
interface IHelpButtonStackProps extends StackProps { | ||
helpText: string; | ||
} | ||
|
||
const HelpButtonStack = (props: PropsWithChildren<IHelpButtonStackProps>) => { | ||
const { helpText, children, ...stackProps } = props; | ||
return ( | ||
<Stack flexDirection="row" alignItems="center" gap={0.75} flexGrow={1} mt={-1} {...stackProps}> | ||
{children} | ||
<HelpButtonTooltip content={helpText} /> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default HelpButtonStack; |
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
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
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.