@meshmakers/octo-ui 3.5.270 → 3.5.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,10 +107,13 @@
107
107
  }
108
108
 
109
109
  // Destructive SOLID button (`themeColor="error"` + default fill, AB#6464): error fill, so a delete
110
- // confirm differs from Cancel without reading the label (action guideline §2.4). Only the solid fill
111
- // class matches: a flat / outline error button (e.g. a danger text action in a toolbar) stays flat
112
- // (guideline §2.2 / §9) - this mixin is also used by the list, grid and page toolbars.
113
- &.k-button-solid-error {
110
+ // confirm differs from Cancel without reading the label (action guideline §2.4). Kendo Angular adds
111
+ // the theme colour and the fill mode as SEPARATE classes: `themeColor="error"` alone yields only
112
+ // `k-button-error` (`fillMode="solid"` adds `k-button-solid`, never `k-button-solid-error`), so the
113
+ // default fill is "an error button without a flat / outline / link / clear fill class". A flat /
114
+ // outline error button (e.g. a danger text action in a toolbar) stays flat (guideline §2.2 / §9) -
115
+ // this mixin is also used by the list, grid and page toolbars.
116
+ &.k-button-error:not(.k-button-flat, .k-button-outline, .k-button-link, .k-button-clear) {
114
117
  background: var(--theme-status-error, var(--bubblegum));
115
118
  border-color: var(--theme-status-error, var(--bubblegum));
116
119
  color: var(--theme-text-on-accent, var(--deep-sea));
@@ -31,7 +31,7 @@
31
31
 
32
32
  // Outline / flat destructive confirms (e.g. the entity page's Delete): the generic action-row
33
33
  // rules force a neutral border and text colour with !important, so restate the danger look.
34
- .k-button:is(.k-button-outline-error, .k-button-flat-error) {
34
+ .k-button:is(.k-button-outline-error, .k-button-flat-error, .k-button-error:is(.k-button-outline, .k-button-flat)) {
35
35
  color: var(--theme-status-error, var(--bubblegum)) !important;
36
36
  border-color: var(--theme-status-error, var(--bubblegum)) !important;
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshmakers/octo-ui",
3
- "version": "3.5.270",
3
+ "version": "3.5.310",
4
4
  "peerDependencies": {
5
5
  "@ngx-translate/core": "^17.0.0 || ^18.0.0",
6
6
  "@angular/animations": "^22.0.0",