igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

igxGrid position of header's feature icon (e.g. filtering icon) and header text become inverted on number columns

Open gdayori opened this issue 8 years ago • 7 comments

Description

On number type columns, cell values get right-aligned which is great, and the position of the header's feature icon (e.g. filtering icon) and the header text become inverted. The icon is placed on the left of the header text on number column. I've got questions regarding this behavior from SEVERAL customers that they feel this behavior unnatural, some of them said operational icons (e.g. filtering icon) should be placed on the same position even on a number type (right-aligned) column in terms of UX. headericonposition

Is this designed in the material guideline? If it's by designed with a certain reason then could you consider to have an option to allow developers to choose the alignment?

  • igniteui-angular version: 6.1.5
  • browser: whatever

Steps to reproduce

  1. Open https://jp.infragistics.com/products/ignite-ui-angular/angular/components/grid_filtering.html
  2. Check the header of Unit Price column

Result

The filtering icon is placed on the left of the header text "Unit Price"

Expected result

The icon should be placed on the same place on every column regardless of the column's dataType.

Attachments

gdayori avatar Sep 20 '18 06:09 gdayori

The layout is by design as described in the Material guidelines https://material.io/design/components/data-tables.html#specs

StefanIvanov avatar Sep 28 '18 12:09 StefanIvanov

@gdayori, also, the users can alter the look & feel of our components using Sass. Let us know if you need a sample demonstrating how to achieve the desired scenario using custom styles.

tiliev avatar Oct 01 '18 06:10 tiliev

@StefanIvanov I couldn't find description that icons should be placed on the left of the header text. Where's described about it?

gdayori avatar Oct 02 '18 08:10 gdayori

@tiliev Thanks! I know how to achieve it with Sass but I just want to discuss how the default style should look.

gdayori avatar Oct 02 '18 08:10 gdayori

@StefanIvanov I couldn't find description that icons should be placed on the left of the header text. Where's described about it?

It is not mentioned in written but it is visible on each of their screen shots, which lead to our decision to match their visuals with the given default look on our end.

StefanIvanov avatar Oct 02 '18 09:10 StefanIvanov

@StefanIvanov Thanks for your reply. I found some images indicating that you are right... I understand that this UI is exactly following the Material Guideline.

gdayori avatar Oct 05 '18 10:10 gdayori

I'm closing this since the current UI is by design.

gdayori avatar Oct 05 '18 10:10 gdayori