generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Toggle backdrop visibility (#483)
- Added a backdrop visible flag to the `ViewerConfig` type. - Synced the new backdrop visibility flag to the URL. - Changed object opacity so it is only applied when backdrops are visible. - Updated `SettingsTab` with the new vector config. - This change moves object opacity to live under the backdrop settings area. - Adds a new onscreen toggle for the background image in `CanvasWrapper`.
- Loading branch information
1 parent
76a36a9
commit 85751a9
Showing
13 changed files
with
217 additions
and
52 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import styled, { css } from "styled-components"; | ||
|
||
/** | ||
* A button styled to remove default styles and visually resemble a link. | ||
* This ensures the button still follows accessibility semantics. | ||
*/ | ||
export const LinkStyleButton = styled.button<{ | ||
$color?: string; | ||
$hoverColor?: string; | ||
}>` | ||
margin: 0; | ||
padding: 0; | ||
width: auto; | ||
overflow: visible; | ||
background: transparent; | ||
line-height: normal; | ||
font: inherit; | ||
font-size: inherit; | ||
border: none; | ||
text-decoration: underline; | ||
${(props) => { | ||
return css` | ||
color: ${props.$color || "var(--color-text-link)"}; | ||
&:hover { | ||
color: ${props.$hoverColor || "var(--color-text-link-hover)"}; | ||
} | ||
&:focus-visible { | ||
box-shadow: 0 0 0 3px ${props.$color || "var(--color-text-link)"}; | ||
} | ||
`; | ||
}} | ||
`; |
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.