diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-25 13:58:25 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-26 11:45:05 +0900 |
commit | bbad1c6c6adf65de031111340f8bf5e46cc41ca6 (patch) | |
tree | c645f705f6e7d6841ccffcb2302fa8a3c13efc02 /src/settings/components/ui | |
parent | 2641183a5b244a9640d8fb7e92ba95dc15dadc58 (diff) |
delete button
Diffstat (limited to 'src/settings/components/ui')
-rw-r--r-- | src/settings/components/ui/delete-button.jsx | 12 | ||||
-rw-r--r-- | src/settings/components/ui/delete-button.scss | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/settings/components/ui/delete-button.jsx b/src/settings/components/ui/delete-button.jsx new file mode 100644 index 0000000..8077a76 --- /dev/null +++ b/src/settings/components/ui/delete-button.jsx @@ -0,0 +1,12 @@ +import './delete-button.scss'; +import { h, Component } from 'preact'; + +class DeleteButton extends Component { + render() { + return <input + className='ui-delete-button' type='button' value='✖' + {...this.props} />; + } +} + +export default DeleteButton; diff --git a/src/settings/components/ui/delete-button.scss b/src/settings/components/ui/delete-button.scss new file mode 100644 index 0000000..7aa2f39 --- /dev/null +++ b/src/settings/components/ui/delete-button.scss @@ -0,0 +1,12 @@ + +.ui-delete-button { + border: none; + padding: 4; + display: inline; + background: none; + color: red; + + &:hover { + color: darkred; + } +} |