Skip to content

Commit

Permalink
Fix channel header icon highlight (#115)
Browse files Browse the repository at this point in the history
* Add new css to channel header icon

* Remove important tag to hide css in dropdown

* Rename todo channel header icon css class
  • Loading branch information
colorfusion authored Sep 2, 2020
1 parent 6cce8b3 commit b2a69b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.todo-plugin-icon {
&:active,
&--active,
&--active:hover {
fill: var(--button-bg);
color: var(--button-bg);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@

import React from 'react';

import './channel_header_button.scss';

type Props = {
shouldHighlight: boolean,
};

export default function ChannelHeaderButton(props: Props) {
let btnClass = 'icon fa fa-list';
if (props.shouldHighlight) {
btnClass += ' todo-plugin-icon--active';
}

return (
<span className={props.shouldHighlight ? 'channel-header__icon--active' : ''} >
<i className='icon fa fa-list '/>
</span>
<i className={btnClass}/>
);
}

0 comments on commit b2a69b7

Please sign in to comment.