mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 21:45:56 +03:00
fix(Filters): update tooltip copy
This commit is contained in:
parent
7a43422848
commit
86e7aa6189
@ -77,7 +77,7 @@ const FilterButton = ({ children, Icon, image, isSelected, ...props }) => (
|
||||
</li>
|
||||
);
|
||||
|
||||
const FilterSection = ({ title, tooltipContent, children, ...props }) => {
|
||||
const FilterSection = ({ title, children, ...props }) => {
|
||||
const [isExpanded, setExpanded] = React.useState(true);
|
||||
const toggleExpandState = () => setExpanded((prev) => !prev);
|
||||
|
||||
@ -100,7 +100,7 @@ const FilterSection = ({ title, tooltipContent, children, ...props }) => {
|
||||
</Tooltip.Trigger>
|
||||
<Tooltip.Content css={Styles.HORIZONTAL_CONTAINER_CENTERED} style={{ marginTop: -4.5 }}>
|
||||
<System.H6 id={titleButtonId} as="p" color="textGrayDark">
|
||||
{tooltipContent}
|
||||
Click to show/hide the filter section
|
||||
</System.H6>
|
||||
</Tooltip.Content>
|
||||
</Tooltip.Root>
|
||||
@ -149,7 +149,7 @@ function Tags({ viewer, data, onAction, ...props }) {
|
||||
const [, { hidePopup }] = useFilterContext();
|
||||
|
||||
return (
|
||||
<FilterSection title="Tags" tooltipContent="Click to show/hide the tags section" {...props}>
|
||||
<FilterSection title="Tags" {...props}>
|
||||
{viewer.slates.map((slate) => (
|
||||
<FilterButton
|
||||
key={slate.id}
|
||||
|
@ -75,7 +75,8 @@ const STYLES_SIDEBAR_FILTER_WRAPPER = (theme) => css`
|
||||
top: ${theme.sizes.header + theme.sizes.filterNavbar}px;
|
||||
width: 300px;
|
||||
height: calc(100vh - ${theme.sizes.header + theme.sizes.filterNavbar}px);
|
||||
overflow-y: overlay;
|
||||
overflow: auto;
|
||||
overflow: overlay;
|
||||
padding: 20px 24px calc(16px + ${theme.sizes.intercomWidget}px + ${theme.sizes.filterNavbar}px);
|
||||
background-color: ${theme.semantic.bgLight};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user