Skip to content
Snippets Groups Projects
Commit 1eebd14e authored by Lewis Liu's avatar Lewis Liu
Browse files

Styled edit button

parent b86de21f
Branches
Tags
No related merge requests found
......@@ -23,8 +23,19 @@
:local(.saveButton) {
composes: mx1 from "style";
composes: subheaderButton;
}
:local(.cancelButton) {
composes: subheaderButton;
opacity: 0.5;
}
:local(.editButton) {
color: var(--primary-button-bg-color);
}
:local(.editButton):hover {
color: color(var(--primary-button-border-color) shade(10%));
transition: color .3s linear;
}
......@@ -88,8 +88,8 @@ export default class EntityItem extends Component {
You are editing this page
</div>
<div className={R.subheaderButtons}>
<button className={cx("Button", "Button--white", "Button--small", R.subheaderButton, R.saveButton)} type="submit">SAVE</button>
<button className={cx("Button", "Button--white", "Button--small", R.subheaderButton, R.cancelButton)} onClick={endEditing}>CANCEL</button>
<button className={cx("Button", "Button--white", "Button--small", R.saveButton)} type="submit">SAVE</button>
<button className={cx("Button", "Button--white", "Button--small", R.cancelButton)} onClick={endEditing}>CANCEL</button>
</div>
</div>
}
......@@ -121,7 +121,7 @@ export default class EntityItem extends Component {
<div className={S.headerButton}>
<a
onClick={startEditing}
className="Button Button--primary Button--withIcon"
className={cx("Button", "Button--borderless", R.editButton)}
>
<div className="flex align-center relative">
<Icon name="pencil" width="16px" height="16px" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment