Add dark-blue button css, so existing "light"blue buttons will remain as they were
parent
8f593ea098
commit
1bed755e88
|
@ -63,12 +63,21 @@
|
|||
}
|
||||
}
|
||||
&.blue {
|
||||
background-color: $dark_blue !important;
|
||||
box-shadow: 0 2px 0px 0px darken($dark_blue, 12%);
|
||||
background-color: $blue;
|
||||
box-shadow: 0 2px 0px 0px darken($blue, 12%);
|
||||
&:focus,
|
||||
&:hover,
|
||||
&.active {
|
||||
background-color: darken($dark_blue, 5%) !important;
|
||||
background-color: darken($blue, 5%) !important;
|
||||
}
|
||||
}
|
||||
&.dark-blue {
|
||||
background-color: $dark-blue;
|
||||
box-shadow: 0 2px 0px 0px darken($dark-blue, 12%);
|
||||
&:focus,
|
||||
&:hover,
|
||||
&.active {
|
||||
background-color: darken($dark-blue, 5%) !important;
|
||||
}
|
||||
}
|
||||
&.red {
|
||||
|
|
|
@ -120,7 +120,7 @@ describe("<SelectPlants />", () => {
|
|||
|
||||
it("creates group", () => {
|
||||
const wrapper = mount(<SelectPlants {...fakeProps()} />);
|
||||
wrapper.find(".blue").simulate("click");
|
||||
wrapper.find(".dark-blue").simulate("click");
|
||||
expect(createGroup).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -72,7 +72,7 @@ export class RawSelectPlants extends React.Component<SelectPlantsProps, {}> {
|
|||
onClick={() => this.destroySelected(this.props.selected)}>
|
||||
{t("Delete")}
|
||||
</button>
|
||||
<button className="fb-button blue"
|
||||
<button className="fb-button dark-blue"
|
||||
onClick={() => this.props.dispatch(createGroup({
|
||||
points: this.props.selected
|
||||
}))}>
|
||||
|
|
Loading…
Reference in New Issue