Skip to content

Commit 59fc9d1

Browse files
committed
Added info about styling save-content button to README
1 parent 130cd9a commit 59fc9d1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ When the button is clicked, the '**_save-content_**' event is emitted with the c
178178

179179
You need to create a method that runs when this event is emitted and pass a parameter to this method. This parameter holds the editor contents.
180180

181-
EX:
181+
**Note:** The default save button has a class of _save-button_ which you can target for styling the button.
182182

183183
```html
184184
<template>
@@ -205,6 +205,24 @@ EX:
205205
}
206206
}
207207
</script>
208+
<style>
209+
.save-button {
210+
color: #fff;
211+
padding: .5em 1em;
212+
background-color: rgba(53, 73, 94, 0.85);
213+
text-decoration: none;
214+
border-radius: 2px;
215+
cursor: pointer;
216+
font-weight: 900;
217+
transition: background-color .2s ease;
218+
margin: 1em 0;
219+
float: right;
220+
}
221+
222+
.save-button:hover {
223+
background-color: #35495e;
224+
}
225+
</style>
208226
```
209227

210228

0 commit comments

Comments
 (0)