getkirby / ideas

This is the backlog of ideas and feature requests from the last two years. Use our new feedback platform to post your new ideas or vote on existing ideas.
https://feedback.getkirby.com
20 stars 0 forks source link

Add warning theme to Info fields #564

Closed GiantCrocodile closed 4 years ago

GiantCrocodile commented 4 years ago

Right now we have three themes for info fields: info, positive and negative. Usually you have a three color level: green, yellow, red. Thus we should have another option: yellow for a warning as it's usually not fine (green) but not bad enough to be critical (red).

https://getkirby.com/docs/reference/panel/fields/info#example__themes

texnixe commented 4 years ago

You can easily create as many of your own themes as you need:

Custom Panel CSS:

.k-box[data-theme="warning"] {
  background: #de935f;
  border-left: 2px solid #d16464;
}

Blueprint:


fields:
  info:
    theme: warning
    text: This is a custom warning info field.
GiantCrocodile commented 4 years ago

Ah, that's a neat workaround @texnixe. Thank you for providing this information.

distantnative commented 4 years ago

3.4 will have

positive negative notice info

distantnative commented 4 years ago