From e2b45da9d02e817735ed1554bc9f4f44cc4bb4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Sun, 1 Nov 2020 16:35:49 +0100 Subject: [PATCH] Migrating some octo-button class divs into Button objects --- webapp/src/components/commentsList.tsx | 8 ++++--- webapp/src/components/viewHeader.scss | 7 ++++++ webapp/src/components/viewHeader.tsx | 33 ++++++++------------------ webapp/src/styles/main.scss | 9 ------- webapp/src/widgets/buttons/button.scss | 10 ++++++++ webapp/src/widgets/buttons/button.tsx | 3 ++- 6 files changed, 34 insertions(+), 36 deletions(-) diff --git a/webapp/src/components/commentsList.tsx b/webapp/src/components/commentsList.tsx index 6166c2557..bf477b6db 100644 --- a/webapp/src/components/commentsList.tsx +++ b/webapp/src/components/commentsList.tsx @@ -8,6 +8,8 @@ import {IBlock} from '../blocks/block' import {Utils} from '../utils' import mutator from '../mutator' +import Button from '../widgets/buttons/button' + import Comment from './comment' import './commentsList.scss' @@ -84,8 +86,8 @@ class CommentsList extends React.Component { /> {this.state.newComment && -
{ if (this.state.newComment) { Utils.log(`Send comment: ${this.state.newComment}`) @@ -98,7 +100,7 @@ class CommentsList extends React.Component { id='CommentsList.send' defaultMessage='Send' /> -
+ } diff --git a/webapp/src/components/viewHeader.scss b/webapp/src/components/viewHeader.scss index 535eeada1..53d972d6e 100644 --- a/webapp/src/components/viewHeader.scss +++ b/webapp/src/components/viewHeader.scss @@ -17,4 +17,11 @@ #groupByLabel { margin-left: 0.3em; } + + .IconButton { + background: none; + &:hover { + background: rgba(var(--main-fg), 0.1); + } + } } diff --git a/webapp/src/components/viewHeader.tsx b/webapp/src/components/viewHeader.tsx index 0381f15f2..007647667 100644 --- a/webapp/src/components/viewHeader.tsx +++ b/webapp/src/components/viewHeader.tsx @@ -22,6 +22,8 @@ import OptionsIcon from '../widgets/icons/options' import SortUpIcon from '../widgets/icons/sortUp' import SortDownIcon from '../widgets/icons/sortDown' import ButtonWithMenu from '../widgets/buttons/buttonWithMenu' +import IconButton from '../widgets/buttons/iconButton' +import Button from '../widgets/buttons/button' import {Editable} from './editable' import FilterComponent from './filterComponent' @@ -136,12 +138,7 @@ class ViewHeader extends React.Component { }} /> -
- -
+ }/> {
-
+
+ {boardTree.board.cardProperties.map((option: IPropertyTemplate) => ( { {withGroupBy && -
+
+ {boardTree.board.cardProperties.filter((o: IPropertyTemplate) => o.type === 'select').map((option: IPropertyTemplate) => ( { }} />} {!this.state.isSearching && -
{ - this.setState({isSearching: true}) - }} - > +
} + } -
- -
+ }/> { @@ -16,7 +17,7 @@ export default class Button extends React.Component { return (
{this.props.icon}