-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardise Some Inspector Sections (#5878)
- Removed some outlines and replaced others with box shadows so they would only exist on one edge. - Uppercased some section titles. - Replaced the use of `FolderLabel` with `InspectorSectionHeader`. - Moved `InspectorSectionHeader` into its own file. - Removed the indentation from `FolderSection`. - Corrected a typo in `EditorContractDropdown`.
- Loading branch information
1 parent
d15fb9d
commit 050e8fe
Showing
7 changed files
with
64 additions
and
133 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
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,44 @@ | ||
import React from 'react' | ||
import { FlexRow, SectionActionSheet, SquareButton, colorTheme } from '../../uuiui' | ||
import { ExpandableIndicator } from '../navigator/navigator-item/expandable-indicator' | ||
|
||
export function InspectorSectionHeader({ | ||
title, | ||
open, | ||
toggle, | ||
uppercase = false, | ||
}: { | ||
title: string | ||
open: boolean | ||
toggle: () => void | ||
uppercase?: boolean | ||
}) { | ||
return ( | ||
<FlexRow | ||
style={{ | ||
padding: 8, | ||
cursor: 'pointer', | ||
}} | ||
onClick={toggle} | ||
data-testid={`section-header-${title}`} | ||
> | ||
<div | ||
style={{ | ||
flexGrow: 1, | ||
display: 'inline', | ||
overflow: 'hidden', | ||
fontSize: '11px', | ||
fontWeight: 600, | ||
textTransform: uppercase ? 'uppercase' : undefined, | ||
}} | ||
> | ||
{title} | ||
</div> | ||
<SectionActionSheet className='actionsheet' style={{ gap: 4 }}> | ||
<SquareButton highlight style={{ width: 12 }}> | ||
<ExpandableIndicator visible collapsed={!open} selected={false} /> | ||
</SquareButton> | ||
</SectionActionSheet> | ||
</FlexRow> | ||
) | ||
} |
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