inputs icon indicating copy to clipboard operation
inputs copied to clipboard

Table styles affect table cell contents

Open mootari opened this issue 3 years ago • 1 comments

From tex in Table headers?:

This style rule is matching the contents of the TeX element: https://github.com/observablehq/inputs/blob/238639f3cb26fa9ecfc48b73bd6751aa66f6b1cc/src/style.css#L231-L235 The rule should be made more specific, like .__ns__-table > table > thead > th > span.

mootari avatar Oct 18 '22 09:10 mootari

If the problematic ruleset is:

https://github.com/observablehq/inputs/blob/86fa5c0b529c32cd83fccdf9b6b80ffe3bf015c0/src/style.css#L231-L235

… then a possible fix would be to modify the above selector as follows:

.__ns__-table thead th > span:first-of-type:not([class]) {
  /* ... */
}

OR

.__ns__-table thead th > span:first-of-type {
  /* ... */
}

galopin avatar Oct 21 '22 17:10 galopin