Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust placement of focus toggle #1875

Merged
merged 5 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
toggle: Make experimental icon float to the left
This allows experimental and non-experimental toggles to appear visually
aligned.
  • Loading branch information
victorlin committed Oct 22, 2024
commit 9463c3afef42eceac4a00dde16407c09bae6468d
5 changes: 4 additions & 1 deletion src/components/controls/toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SidebarSubtitle } from "./styles";
const ToggleContainer = styled.div`
// Same as ToggleBackground, necessary for panel toggles.
height: 21px;
position: relative;
`

const ToggleBackground = styled.label`
Expand All @@ -31,7 +32,9 @@ const ToggleSubtitle = styled(SidebarSubtitle)`

const ExperimentalIcon = styled.span`
color: ${(props) => props.theme.color};
margin-right: 5px;
position: absolute;
left: -12px;
top: 6px;
`

const Slider = styled.div`
Expand Down