gristlabs / grist-core

Grist is the evolution of spreadsheets.
https://www.getgrist.com
Apache License 2.0
7.27k stars 323 forks source link

Table Cell Format "Bold" Weight is Heavier & Inconsistent with Rest of UI (Markdown cell format for text column types, various widgets, etc.) #1207

Open computrav opened 2 months ago

computrav commented 2 months ago

Describe the current behavior

There are various places where text can appear "bold" within the Grist UI.

However, it appears that if you are formatting a Column as "Bold" via Cell Formatting, it ends up applies CSS of font-weight: 800. This is "extra bold" and is more bold than the default CSS bold, which would be font-weight: 700, which is also the same if you just do font-weight: bold.

I personally have not used this bold within cells much (if at all) because it's a bit unsightly. Then today I was doing bold in the new Markdown feature within cells, and noticed the bold looked normal.

After looking into this more, it seems that everywhere else I've looked in the UI, the "Boldness" is "normal" (font-weight: bold or font-weight: 700).

Hence, I would recommend that the normal cell formatting bold get changed to the normal level of bold.

Furthermore, in various widgets such as "HTML viewer", "Markdown", "Notepad", etc, the boldness there is also "normal", thus is inconsistent with the cell formatting boldness.

Steps to reproduce

  1. Create a new table, and open the right side Creator Panel
  2. Select the first column, enter some text into the cell, then in the sidebar, go to Column, then: a. Column Type -> Text b. Cell Style -> B (to make it bold) -> Apply. Observe the "extra boldness" of the text 4.Select the second column, enter some Markdown content with bold, e.g., This is a **test**., then in the sidebar, go to Column, then: a. Column Type -> Text b. Cell Format -> Markdown. Observe the "normal boldness" of the word "test", and that it's less-bold than the text in the first column.

Describe the expected behavior

Boldness of text should be consistent throughout "bold" content in tables, and at least in other "official" widgets that have rich text formatting (per list of sample widgets in the 'current behavior' above).

Where have you encountered this bug?

Instance information (when self-hosting only)