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

igx-button-theme needs ability to style button font size, weight, family

Open ghost opened this issue 8 years ago • 5 comments

igx-button-theme needs ability to style button font size, weight, family.

Nebula Sketch allows customizing the button font size, weight, family, but when I add a class to the button, it's not being used.

Only Scenario. igx-button-theme is used to set button text color and button background, using pallet names.

Must also be able to set the font size, weight, family, in CSS.

How is this accomplished?

ghost avatar Jun 01 '18 18:06 ghost

You can check the sass docs for the component that you are using. For example there is explanation how to set the default font size used globally:

image

I see different options to set the color of the button, although I dont see such option for the fonts:

image

zdrawku avatar Jun 04 '18 07:06 zdrawku

@zdrawku we can't set font sizes globally for code gen.

I need what I requested: igx-button-theme needs the ability to style button font size, weight, family.

ghost avatar Jun 04 '18 12:06 ghost

@sdinev do we need this?

simeonoff avatar Jun 05 '18 08:06 simeonoff

We will review and implement changes to the buttons in the months following the marketing release, to align them with the new material guidelines from a couple of weeks back. https://material.io/design/components/buttons.html#specs

Before that, this could cause more issues and inconsistency than do us good.

For codegen v1, we agreed that we will only take into consideration the color of the text, and not the possible alignment/weight/size changes a designer makes.

I am leaving this issue open, since at least some of the changes will be implemented in the foreseeable future and we can then close it

SDinev avatar Jun 05 '18 11:06 SDinev

This has been resolved with the introduction of component typography.

simeonoff avatar Nov 22 '18 13:11 simeonoff