|
95 | 95 | "docs": {
|
96 | 96 | "hero": {
|
97 | 97 | "title": "Badge",
|
98 |
| - "description": "Badge is a global component used for pimples, numeric notifications and icon badges. Badge indicates new threads in the child view and creates a “trail” user can follow. \nUse a Pimple Badge to indicate a notification or new activity of an item (e.g. new activity inside a group) or a status (online, unread).\n\nBadges usually appear on or near other components like Icons, Avatars, Chips and Lists.", |
| 98 | + "description": "markdown:\nBadge is a global component used for pimples, numeric notifications and icon badges. Badge indicates new threads in the child view and creates a “trail” user can follow. \nUse a Pimple Badge to indicate a notification or new activity of an item (e.g. new activity inside a group) or a status (online, unread).\n\nBadges usually appear on or near other components like Icons, Avatars, Chips and Lists.", |
99 | 99 | "type": "hero",
|
100 | 100 | "layout": "horizontal",
|
101 | 101 | "content": [
|
|
121 | 121 | {
|
122 | 122 | "props": [
|
123 | 123 | {
|
124 |
| - "label": "1" |
| 124 | + "label": "1", |
| 125 | + "backgroundColor": "#FC3D2F", |
| 126 | + "labelFormatterLimit": 2 |
125 | 127 | },
|
126 | 128 | {
|
127 | 129 | "label": "1002",
|
128 |
| - "labelFormatterLimit": 3 |
| 130 | + "labelFormatterLimit": 3, |
| 131 | + "backgroundColor": "#FC3D2F" |
129 | 132 | },
|
130 | 133 | {
|
131 | 134 | "label": "102",
|
132 | 135 | "labelFormatterLimit": 2,
|
| 136 | + "backgroundColor": "#FC3D2F", |
133 | 137 | "icon": {
|
134 | 138 | "uri": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/icons/icon%20examples%20for%20docs/notificationsFillSmall.png"
|
135 | 139 | }
|
|
143 | 147 | "content": [
|
144 | 148 | {
|
145 | 149 | "props": {
|
146 |
| - "label": "New" |
| 150 | + "label": "New", |
| 151 | + "backgroundColor": "#FC3D2F" |
147 | 152 | }
|
148 | 153 | }
|
149 | 154 | ]
|
|
153 | 158 | "content": [
|
154 | 159 | {
|
155 | 160 | "props": {
|
156 |
| - "label": "" |
| 161 | + "label": "", |
| 162 | + "backgroundColor": "#FC3D2F" |
157 | 163 | }
|
158 | 164 | }
|
159 | 165 | ]
|
|
163 | 169 | "content": [
|
164 | 170 | {
|
165 | 171 | "props": {
|
| 172 | + "backgroundColor": "#FC3D2F", |
166 | 173 | "icon": {
|
167 | 174 | "uri": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/icons/icon%20examples%20for%20docs/socialFacebook.png"
|
168 | 175 | }
|
|
186 | 193 | "content": [
|
187 | 194 | {
|
188 | 195 | "props": {
|
189 |
| - "label": "2" |
| 196 | + "label": "2", |
| 197 | + "labelFormatterLimit": 2, |
| 198 | + "backgroundColor": "#FC3D2F" |
190 | 199 | }
|
191 | 200 | },
|
192 | 201 | {
|
193 | 202 | "props": {
|
| 203 | + "label": "", |
| 204 | + "backgroundColor": "#FC3D2F", |
| 205 | + "size": "small" |
194 | 206 | }
|
195 | 207 | }
|
196 | 208 | ]
|
|
200 | 212 | "content": [
|
201 | 213 | {
|
202 | 214 | "props": {
|
203 |
| - "label": "2", |
204 |
| - "backgroundColor": "#00A87E" |
| 215 | + "label": "", |
| 216 | + "backgroundColor": "#FC3D2F", |
| 217 | + "labelFormatterLimit": 2, |
| 218 | + "size": "small" |
205 | 219 | }
|
206 | 220 | },
|
207 | 221 | {
|
208 | 222 | "props": {
|
209 | 223 | "label": "",
|
210 |
| - "backgroundColor": "#00A87E" |
| 224 | + "backgroundColor": "#FC3D2F" |
211 | 225 | }
|
212 | 226 | }
|
213 | 227 | ]
|
|
219 | 233 | "type": "table",
|
220 | 234 | "columns": [
|
221 | 235 | "Property",
|
222 |
| - "Counter Badge", |
| 236 | + "Counter", |
223 | 237 | "Pimple"
|
224 | 238 | ],
|
225 | 239 | "items": [
|
|
228 | 242 | "description": "Used for notifications or new items. ",
|
229 | 243 | "content": [
|
230 | 244 | {
|
231 |
| - "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_red.png" |
| 245 | + "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_red.png", |
| 246 | + "props": { |
| 247 | + "label": "2", |
| 248 | + "labelFormatterLimit": 2, |
| 249 | + "backgroundColor": "#FC3D2F" |
| 250 | + } |
232 | 251 | },
|
233 | 252 | {
|
234 | 253 | "props": {
|
235 |
| - "label": "" |
| 254 | + "label": "", |
| 255 | + "backgroundColor": "#FC3D2F" |
236 | 256 | }
|
237 | 257 | }
|
238 | 258 | ]
|
|
242 | 262 | "description": "Used for live visitors or an “online” indication. ",
|
243 | 263 | "content": [
|
244 | 264 | {
|
245 |
| - "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_green.png" |
| 265 | + "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_green.png", |
| 266 | + "props": { |
| 267 | + "label": "2", |
| 268 | + "labelFormatterLimit": 2, |
| 269 | + "backgroundColor": "#00A87E" |
| 270 | + } |
246 | 271 | },
|
247 | 272 | {
|
248 | 273 | "props": {
|
|
257 | 282 | "description": "Used for chat messages.",
|
258 | 283 | "content": [
|
259 | 284 | {
|
260 |
| - "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_blue.png" |
| 285 | + "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_blue.png", |
| 286 | + "props": { |
| 287 | + "label": "2", |
| 288 | + "labelFormatterLimit": 2 |
| 289 | + } |
261 | 290 | },
|
262 | 291 | {
|
263 | 292 | "props": {
|
264 |
| - "label": "", |
265 |
| - "backgroundColor": "#116DFF" |
| 293 | + "label": "" |
266 | 294 | }
|
267 | 295 | }
|
268 | 296 | ]
|
|
272 | 300 | "description": "Used for passive counters.",
|
273 | 301 | "content": [
|
274 | 302 | {
|
275 |
| - "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_grey.png" |
| 303 | + "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_style_counter_grey.png", |
| 304 | + "props": { |
| 305 | + "label": "2", |
| 306 | + "labelFormatterLimit": 2, |
| 307 | + "backgroundColor": "#A6ACB1" |
| 308 | + } |
276 | 309 | },
|
277 | 310 | {
|
278 | 311 | "props": {
|
|
297 | 330 | "description": "Icon can be added as an accessory to counter badge, or cover the entire badge",
|
298 | 331 | "content": [
|
299 | 332 | {
|
300 |
| - "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_accessory_icon.png" |
| 333 | + "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Badge/badge_accessory_icon.png", |
| 334 | + "props": [ |
| 335 | + { |
| 336 | + "label": "102", |
| 337 | + "labelFormatterLimit": 2, |
| 338 | + "backgroundColor": "#FC3D2F", |
| 339 | + "icon": { |
| 340 | + "uri": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/icons/icon%20examples%20for%20docs/notificationsFillSmall.png" |
| 341 | + } |
| 342 | + }, |
| 343 | + { |
| 344 | + "label": "", |
| 345 | + "icon": { |
| 346 | + "uri": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/icons/icon%20examples%20for%20docs/socialFacebook.png" |
| 347 | + } |
| 348 | + } |
| 349 | + ] |
301 | 350 | }
|
302 | 351 | ]
|
303 | 352 | }
|
|
309 | 358 | "items": [
|
310 | 359 | {
|
311 | 360 | "title": "Badge size recommendations",
|
312 |
| - "description": "On Icon: Large Pimple or Small Badge\nOn Thumbnail: Large Badge\nOn Avatar:
Avatar 3XSmall, XXSmall - Pimple Small
Avatar XSmall, Small, Medium - Pimple Large
Avatar Large, XLarge - Pimple 14x14", |
| 361 | + "description": "markdown:\nOn Icon: Large Pimple or Small Badge\n\nOn Thumbnail: Large Badge\n\nOn Avatar:
Avatar xxxSmall, xxSmall - Pimple Small
Avatar xSmall, Small, Medium - Pimple Large
Avatar Large, xLarge - Pimple Large
(the badge is positioned using pythagoras)", |
313 | 362 | "content": [
|
314 | 363 | {
|
315 | 364 | "value": "https://embed.figma.com/design/xFjvYNkGTmYTGYMLrmz9Ir/Docs-Assets?node-id=487-40121&embed-host=share"
|
|
0 commit comments