Skip to content

Commit 8f7f600

Browse files
committed
add other categories, add background to category
1 parent a6b6853 commit 8f7f600

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/components/modal-design-library/block-list.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,35 @@ const BlockList = props => {
4848
return output
4949
}, {} )
5050

51+
const toAdd = [
52+
[ 'Contact', 22 ],
53+
[ 'Featured Products', 14 ],
54+
[ 'Footer', 11 ],
55+
[ 'Header', 12 ],
56+
[ 'Map', 10 ],
57+
[ 'Service Menu', 10 ],
58+
[ 'Stats', 15 ],
59+
[ 'Post Loop', 6 ],
60+
[ 'Pricing Table', 15 ],
61+
[ 'Quote', 10 ],
62+
[ 'Carousel', 13 ],
63+
[ 'Table of Contents', 8 ],
64+
[ 'Tabs', 11 ],
65+
[ 'Team Members', 10 ],
66+
[ 'Testimonials', 25 ],
67+
[ 'Timeline', 9 ],
68+
[ 'Video', 11 ],
69+
]
70+
71+
toAdd.forEach( ( [ label, count ] ) => {
72+
_categories[ label ] = {
73+
id: label,
74+
label,
75+
count,
76+
}
77+
total += count
78+
} )
79+
5180
_categories.all = {
5281
id: '',
5382
label: ' ',

src/components/modal-design-library/editor.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
[aria-pressed="true"] {
214214
font-weight: bold;
215215
color: #f00069;
216+
background: #f1f1f1;
216217
}
217218
.is-disabled {
218219
opacity: 0.3;

0 commit comments

Comments
 (0)