Skip to content

Commit

Permalink
fix: header button border (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara authored Feb 18, 2022
1 parent 1e80a40 commit 96bfd6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/components/ChangeEditorButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const ChangeEditorButton: FunctionComponent<Props> = observer(
}}
onBlur={closeOnBlur}
ref={buttonRef}
className="sn-icon-button"
className="sn-icon-button border-contrast"
>
<VisuallyHidden>Change editor</VisuallyHidden>
<Icon type="dashboard" className="block" />
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/components/NotesOptionsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const NotesOptionsPanel = observer(
}}
onBlur={closeOnBlur}
ref={buttonRef}
className="sn-icon-button"
className="sn-icon-button border-contrast"
>
<VisuallyHidden>Actions</VisuallyHidden>
<Icon type="more" className="block" />
Expand Down
4 changes: 3 additions & 1 deletion app/assets/javascripts/components/PinNoteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export const PinNoteButton: FunctionComponent<Props> = observer(

return (
<button
className={`sn-icon-button ${pinned ? 'toggled' : ''} ${className}`}
className={`sn-icon-button border-contrast ${
pinned ? 'toggled' : ''
} ${className}`}
onClick={togglePinned}
>
<VisuallyHidden>Pin selected notes</VisuallyHidden>
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/_sn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -950,3 +950,7 @@
.text-editor {
font-size: var(--sn-stylekit-font-size-editor);
}

.sn-component .border-contrast {
border-color: var(--sn-stylekit-contrast-border-color);
}

0 comments on commit 96bfd6e

Please sign in to comment.