diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx index 0ee93e14f4b6dd90dd725fa2d62857e53724da81..fcfe49ef69251ecabdba7549d878982d64f1160f 100644 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/container.jsx @@ -10,10 +10,8 @@ import { withRouter } from 'react-router'; const ActionsBarContainer = props => <ActionsBar {...props} />; export default withRouter(withTracker(({ location, router }) => { - const togglePollMenu = () => { - return location.pathname.includes('poll') - ? router.push('/') : router.push('/users/poll'); - }; + const togglePollMenu = () => (location.pathname.includes('poll') + ? router.push('/') : router.push('/users/poll')); return { isUserPresenter: Service.isUserPresenter(), diff --git a/bigbluebutton-html5/imports/ui/components/button/component.jsx b/bigbluebutton-html5/imports/ui/components/button/component.jsx index 79db76fa4078769a8b64a198ca8fc956382ddf2b..4ca5fc9843646774e166c1c383a6607ddba5e02e 100644 --- a/bigbluebutton-html5/imports/ui/components/button/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/button/component.jsx @@ -11,7 +11,7 @@ const SIZES = [ ]; const COLORS = [ - 'default', 'primary', 'danger', 'success', 'primary-outlined', + 'default', 'primary', 'danger', 'success', ]; const propTypes = { diff --git a/bigbluebutton-html5/imports/ui/components/button/styles.scss b/bigbluebutton-html5/imports/ui/components/button/styles.scss index dd8af67002738d0528d44aeff89cb53e992f6706..46c91e3abf5644983b14b6149ca7ec75fd6e0d79 100644 --- a/bigbluebutton-html5/imports/ui/components/button/styles.scss +++ b/bigbluebutton-html5/imports/ui/components/button/styles.scss @@ -33,11 +33,6 @@ $btn-lg-padding: $lg-padding-y $lg-padding-x; $btn-jumbo-font-size: 3rem; $btn-jumbo-padding: $jumbo-padding-y $jumbo-padding-x; -$btn-outlined-hover: #1A73D4; -$btn-outlined-bg: $color-white; -$btn-outlined-color: $color-gray-light; -$btn-outlined-border: $color-gray-light; - /* Base * ========== */ @@ -220,36 +215,6 @@ $btn-outlined-border: $color-gray-light; } } -@mixin button-outlined-variant($color, $background, $border, $color-outline) { - color: $color; - background-color: $background; - box-shadow: 0 0 0 1px $border; - - &:hover, - .buttonWrapper:hover & { - color: $color-outline; - background-color: $background; - box-shadow: 0 0 0 1px $color-outline; - - .label:hover { - color: $color-outline !important; - opacity: 1 !important; - } - } - - &:focus, - .buttonWrapper:focus:not([aria-disabled="true"]) & { - outline: none !important; - color: $color-outline; - background-color: $background; - box-shadow: 0 0 0 $border-size $color-outline; - } - - &:active { - box-shadow: 0 0 0 $border-size $color-outline; - } -} - .default { @include button-variant($btn-default-color, $btn-default-bg, $btn-primary-border); } @@ -266,10 +231,6 @@ $btn-outlined-border: $color-gray-light; @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border); } -.primary-outlined { - @include button-outlined-variant($btn-outlined-color, $btn-outlined-bg, $btn-outlined-border, $btn-outlined-hover); -} - /* Styles * ========== */ diff --git a/bigbluebutton-html5/imports/ui/components/poll/component.jsx b/bigbluebutton-html5/imports/ui/components/poll/component.jsx index d6deb5327ed90625da1794f34a23fb929ef9defd..3db8fb6d33840d6ed25ee8609b43dc483c66728d 100644 --- a/bigbluebutton-html5/imports/ui/components/poll/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/poll/component.jsx @@ -165,7 +165,7 @@ class Poll extends Component { arr.push(<Button label={label} - color="primary-outlined" + color="default" className={styles.pollBtn} key={_.uniqueId('quick-poll-')} onClick={() => { @@ -248,7 +248,7 @@ class Poll extends Component { </div> <Button className={styles.customBtn} - color="primary-outlined" + color="default" onClick={this.toggleCustomFields} label={intl.formatMessage(intlMessages.customPollLabel)} /> diff --git a/bigbluebutton-html5/imports/ui/components/poll/styles.scss b/bigbluebutton-html5/imports/ui/components/poll/styles.scss index 398bc083d2a5205974474f029e73fa614349dc75..858da617b8c354eb1585149d52148e918244738f 100644 --- a/bigbluebutton-html5/imports/ui/components/poll/styles.scss +++ b/bigbluebutton-html5/imports/ui/components/poll/styles.scss @@ -72,9 +72,59 @@ $column-amount: 2; margin-right: $sm-padding-y; } +.customBtn:hover, +.pollBtn:hover { + box-shadow: 0 0 0 1px #1A73D4; + background-color: $color-white; + color: #1A73D4; + + > span { + color: #1A73D4; + opacity: 1; + } +} + +.customBtn, .pollBtn { margin-top: $sm-padding-y; margin-bottom: $sm-padding-y; + background-color: $color-white; + box-shadow: 0 0 0 1px $color-gray-light; + color: $color-gray-light; + + > span { + color: $color-gray-light; + } + + > span:hover { + color: #1A73D4; + opacity: 1; + } +} + +.customBtn:active, +.pollBtn:active { + &:focus { + box-shadow: 0 0 0 1px #1A73D4; + } + + + background-color: $color-white; + box-shadow: 0 0 0 1px #1A73D4; + + > span { + color: #1A73D4; + } +} + +.customBtn:focus, +.pollBtn:focus { + background-color: $color-white; + box-shadow: 0 0 0 1px #1A73D4; + + > span { + color: #1A73D4; + } } .input {