fix(aot): Toolbar styles (#2252)

Rounded corners on the first and last buttons. Size of the hangup button
on hover.
This commit is contained in:
hristoterezov 2017-12-04 22:23:51 -06:00 committed by virtuacoplenny
parent 5ffcaca649
commit d79995e14c
3 changed files with 12 additions and 11 deletions

View File

@ -56,11 +56,14 @@
/**
* Toolbar button styles for always on top.
*/
> .button {
.button {
font-size: $alwaysOnTopToolbarFontSize;
height: $alwaysOnTopToolbarSize;
line-height: $alwaysOnTopToolbarSize;
width: $alwaysOnTopToolbarSize;
&_hangup, &_hangup:hover {
font-size: $alwaysOnTopToolbarFontSize;
}
}
}

View File

@ -96,11 +96,13 @@ export default class StatelessToolbarButton extends AbstractToolbarButton {
const attributes = getButtonAttributesByProps(button);
return (
<a
{ ...attributes }
onClick = { this._onClick }>
{ this.props.children }
</a>
<div className = { `toolbar-button-wrapper ${button.id}-wrapper` }>
<a
{ ...attributes }
onClick = { this._onClick }>
{ this.props.children }
</a>
</div>
);
}

View File

@ -140,11 +140,7 @@ class ToolbarButton extends Component<*> {
);
}
return (
<div className = { `toolbar-button-wrapper ${button.id}-wrapper` }>
{ children }
</div>
);
return children;
}
/**