Skip to content

Commit 53b8cf3

Browse files
committed
added defaults and css
1 parent 4b9414d commit 53b8cf3

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

common/common.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.custom-component.warning {
2+
color: red;
3+
}
4+
a.btn-custom.test-button {
5+
background-color: --var(--danger);
6+
color: --var(--tertiary);
7+
}

settings.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# See https://meta.discourse.org/t/objects-type-for-theme-setting/305009
22
buttons:
33
type: objects
4-
default: []
4+
default:
5+
- name: button 1
6+
text: "Custom Component Demo Button!!"
7+
title: "See this text if you mouseover the button"
8+
url: "https://www.literatecomputing.com"
9+
class: "test-button"
10+
icon: "triangle-exclamation"
11+
outlet: "top-notices"
12+
group_action: "show"
13+
groups: [1]
514
schema:
615
name: link_button
716
properties:
@@ -40,7 +49,13 @@ buttons:
4049
default: []
4150
custom_text_block:
4251
type: objects
43-
default: []
52+
default:
53+
- name: text_block 1
54+
text: "Custom Component Demo Text Block 1!!"
55+
outlet: "top-notices"
56+
class: "warning"
57+
group_action: "show"
58+
groups: [1]
4459
schema:
4560
name: text_block
4661
properties:

0 commit comments

Comments
 (0)