Kendo-ui-core: Unexpected Dialog buttons left alignment when buttonLayout is set to normal

Created on 20 Sep 2017  路  6Comments  路  Source: telerik/kendo-ui-core

Bug report

Since v2017.3.913 kendo.ui.Dialog buttons are now aligned to the left when buttonLayout === "normal". Besides round corners have been removed between buttons like in mobile button groups.

This breaks visual consistency with other dialogs in kendo.ui.Editor, kendo.ui.Gantt, kendo.ui.SpreadSheet, ...

Reproduction of the problem

See http://dojo.telerik.com/uGADe.

image

Current behavior

Buttons aligned to the left and round corners removed between buttons.

Expected/desired behavior

Buttons aligned to the right and round corners on all sides of buttons like in other dialogs from kendo.ui.Editor, kendo.ui.Gantt, kendo.ui.SpreadSheet.

Environment

  • Kendo UI version: 2017.3.913
  • jQuery version: x.y
  • Browser: [all]
Appearance Bug Dialog Priority 5 jQuery2

Most helpful comment

The close button has moved to the left as well with title: false:

Kendo UI 2017.3.913
http://dojo.telerik.com/iKUPU/3

Kendo UI 2017.2.621
http://dojo.telerik.com/iKUPU/5

All 6 comments

You need:

.k-dialog {
    .k-dialog-buttongroup {
        &.k-dialog-button-layout-normal {
            display: flex;
            justify-content: flex-end;
           .k-button {
               border-radius: .border-radius();
           }
        }
    }
}

Also the following would make dialogs nicer:

.k-dialog {
    .k-dialog-buttongroup {
        &.k-dialog-button-layout-normal {
            border-top: solid 1px @widget-border-color;
        }
    }
}

Jacques, we appreciate both the bug report and the proposed fix. The last bit, about border-top is also interesting.

/cc @lkarakoleva

The close button has moved to the left as well with title: false:

Kendo UI 2017.3.913
http://dojo.telerik.com/iKUPU/3

Kendo UI 2017.2.621
http://dojo.telerik.com/iKUPU/5

@jlchereau, thank you for pointing those issues. After consulting with our designer, we added border and background color for dialog footer.

@mvgmvg , after the fixes, the buttons position is still wrong in IE 9, both in LTR and RTL:
image

The rest of the improvements appear as expected.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CSP
aersamkull picture aersamkull  路  4Comments

zdravkov picture zdravkov  路  4Comments

pepinho24 picture pepinho24  路  4Comments

andreluizbellon picture andreluizbellon  路  5Comments

IvanDanchev picture IvanDanchev  路  4Comments