mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: improve update button visibility (#3115)
* feat: give update button primary focus when applicable resolves #3024 * added update tooltip * cleanup * prettier * PR feedback
This commit is contained in:
@ -110,16 +110,17 @@ export const HelpTooltipLink: React.FC<{ href: string }> = ({ children, href })
|
||||
)
|
||||
}
|
||||
|
||||
export const HelpTooltipAction: React.FC<{ icon: Icon; onClick: () => void }> = ({
|
||||
children,
|
||||
icon: Icon,
|
||||
onClick,
|
||||
}) => {
|
||||
export const HelpTooltipAction: React.FC<{
|
||||
icon: Icon
|
||||
onClick: () => void
|
||||
ariaLabel?: string
|
||||
}> = ({ children, icon: Icon, onClick, ariaLabel }) => {
|
||||
const styles = useStyles()
|
||||
const tooltip = useHelpTooltip()
|
||||
|
||||
return (
|
||||
<button
|
||||
aria-label={ariaLabel ?? ""}
|
||||
className={styles.action}
|
||||
onClick={(event) => {
|
||||
event.stopPropagation()
|
||||
|
Reference in New Issue
Block a user