From 2b18e782d63792d48b199982522d3f674921b056 Mon Sep 17 00:00:00 2001 From: Kacper Kula Date: Tue, 9 May 2017 14:53:47 +0200 Subject: [PLT-4374] Added active state for recent mentions and flagged posts. (#6253) * [PLT-4374] Added active state for recent mentions and flagged posts. * Increased hover opacity to 0.7 on mention and flag icon. --- webapp/components/search_bar.jsx | 6 ++++++ webapp/sass/layout/_headers.scss | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'webapp') diff --git a/webapp/components/search_bar.jsx b/webapp/components/search_bar.jsx index 23f7d1762..1ed8445f8 100644 --- a/webapp/components/search_bar.jsx +++ b/webapp/components/search_bar.jsx @@ -248,6 +248,8 @@ export default class SearchBar extends React.Component { let mentionBtn; let flagBtn; if (this.props.showMentionFlagBtns) { + var mentionBtnClass = SearchStore.isMentionSearch ? 'active' : ''; + mentionBtn = (
{'@'} @@ -269,6 +272,8 @@ export default class SearchBar extends React.Component {
); + var flagBtnClass = SearchStore.isFlaggedPosts ? 'active' : ''; + flagBtn = (