ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-button does not allow overriding CSS letter-spacing and word-spacing

Open ee92 opened this issue 6 years ago • 2 comments

Describe the bug Some people use custom spacing in their browser to make the page more readable. This is done using global CSS styles. The ui5-button is not affected by these styles.

To reproduce Steps to reproduce the behavior:

  1. Go to https://sap.github.io/ui5-webcomponents/playground/components/Button/
  2. Using devtools, add the following CSS rule to the page:
* {
    line-height:1.5 !important;
    letter-spacing:0.12em !important;
    word-spacing:0.16em !Important;
}
  1. Notice the custom spacing is applied to all text on the page besides the ui5-button inner text.

Expected behavior According to the SAP accessibility wiki, all text should adapt to custom spacing. (https://wiki.wdf.sap.corp/wiki/display/Acc/ACC-283+Details)

Screenshots Screen Shot 2020-10-22 at 11 40 53 AM

Affected components ui5-button

Organization: SuccessFactors

Priority: Low

Thank you for looking into this.

ee92 avatar Oct 22 '20 18:10 ee92

Hi @ee92

After applying the following styles to the following url(this is the current master branch).

line-height:1.5 !important;
    letter-spacing:0.12em !important;
    word-spacing:0.16em !Important;

This is the result:

image You can see the styles in the upper right corner

The problem is that the deployment of the playground has failed for some time and what you are looking at is not the playground version for rc9

fifoosid avatar Oct 23 '20 08:10 fifoosid

The playground is deployed successfully and the issue is resolved

fifoosid avatar Oct 26 '20 08:10 fifoosid