Commit 20be7b08 authored by Robert Knight's avatar Robert Knight

Remove "X" icon from toggle button in focus mode

Since clicking the button toggles between two states rather than
dismissing the "focus mode" header, the "X" icon doesn't feel
appropriate, so remove it.

The button's padding has been adjusted to center align the content
following the removal of the icon.

Fixes #1294
parent 47630349
...@@ -4,8 +4,6 @@ const { createElement } = require('preact'); ...@@ -4,8 +4,6 @@ const { createElement } = require('preact');
const useStore = require('../store/use-store'); const useStore = require('../store/use-store');
const SvgIcon = require('./svg-icon');
/** /**
* Render a control to interact with any focused "mode" in the sidebar. * Render a control to interact with any focused "mode" in the sidebar.
* Currently only a user-focus mode is supported but this could be broadened * Currently only a user-focus mode is supported but this could be broadened
...@@ -55,7 +53,6 @@ function FocusedModeHeader() { ...@@ -55,7 +53,6 @@ function FocusedModeHeader() {
<div className="focused-mode-header sheet"> <div className="focused-mode-header sheet">
{filterStatus} {filterStatus}
<button onClick={toggleFocusedMode} className="focused-mode-header__btn"> <button onClick={toggleFocusedMode} className="focused-mode-header__btn">
<SvgIcon name="cancel" className="focused-mode-header__btn-icon" />
{buttonText} {buttonText}
</button> </button>
</div> </div>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
display: flex; display: flex;
margin-left: auto; margin-left: auto;
height: 30px; height: 30px;
padding-left: 6px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
background-color: $grey-2; background-color: $grey-2;
color: $grey-5; color: $grey-5;
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
} }
} }
&__btn-icon {
margin-right: 3px;
}
&__filter-status { &__filter-status {
font-weight: 400; font-weight: 400;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment