Skip to content

Commit 0d7c649

Browse files
Improve UX of auto-added button
1 parent f7a3c2b commit 0d7c649

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/annotations/components/AnnotationEditable.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -732,23 +732,24 @@ export default class AnnotationEditable extends React.Component<Props, State> {
732732
tooltipText={
733733
this.props.isShared ? (
734734
<span>
735-
Disable Auto-Add
736-
<br /> Only added to Spaces you manually select
735+
<strong>Auto-Added: ON</strong>
736+
<br />
737+
Visible in all Spaces the page is in
737738
</span>
738739
) : (
739740
<span>
740-
Enable Auto-Add
741-
<br /> Added to all Spaces the page is in
741+
<strong>Add-added: OFF</strong>
742+
<br /> Only visible in manually added Spaces
742743
</span>
743744
)
744745
}
745746
placement="bottom"
746747
getPortalRoot={this.props.getRootElement}
747748
>
748749
<Icon
749-
heightAndWidth="28px"
750+
heightAndWidth="26px"
750751
icon={'spread'}
751-
color={this.props.isShared ? 'prime1' : 'greyScale3'}
752+
color={this.props.isShared ? 'prime1' : 'greyScale4'}
752753
onClick={(event) => {
753754
event.stopPropagation()
754755
if (event.shiftKey) {
@@ -759,7 +760,7 @@ export default class AnnotationEditable extends React.Component<Props, State> {
759760
)(!this.props.isShared, !this.props.isShared)
760761
}
761762
}}
762-
padding={'1px'}
763+
padding={'2px'}
763764
/>
764765
</TooltipBox>
765766
</AutoAddedIndicator>
@@ -1504,7 +1505,7 @@ export default class AnnotationEditable extends React.Component<Props, State> {
15041505

15051506
const AutoAddButtonContainer = styled.div`
15061507
position: absolute;
1507-
bottom: 2px;
1508+
bottom: 3px;
15081509
left: 10px;
15091510
z-index: 100;
15101511
`

0 commit comments

Comments
 (0)