Although not directly related to the new Table Utility Classes, there was a change to the default CSS in $:/themes/tiddlywiki/vanilla/base that affected ALL tables, everywhere.
Specifically, this CSS in v5.2.4:
table th, table td { padding: 4px 6px 4px 6px; ... }
compared to v5.2.3:
table th, table td { padding: 0 7px 0 7px; ... }
This change had a significant negative impact on EVERY instance where I’d used a table without also explicitly specifying the padding for th
and td
elements. When I upgraded to v5.2.4, all the cells in those tables suddenly got “fatter” due to the increase in default padding.
To address this, I had three options. I could either
- Find every table in my content and explicitly add
style="padding:0 7px"
to every <td>
element
- OR, in a Stylesheet tiddler, define a new classname; e.g.
.skinnyTable th, .skinnyTable td { padding:0 7px; }
and then find every table in my content and explicitly add class="skinnyTable"
to every <table>
element
- In a Stylesheet tiddler, revert to the previous default padding by defining
table th, table td { padding: 0 7px; }
Because of the widespread use of tables in some of my content, I opted to use the 3rd approach, added to my general-purpose https://tiddlytools.com/#TiddlyTools%2FStylesheet%2FAdjustments stylesheet tiddler.
Having done so, I haven’t seen any negative impact on TWCore content that uses tables (e.g., various $:/ControlPanel tiddlers).
A similar “global” CSS impact also occurred with the addition of the following in $:/themes/tiddlywiki/vanilla/base
/* Input elements accessibility -- overwrite the reset */
:focus-visible {
outline: 2px solid <<colour primary>>;
outline-offset: -2px; /* same as in reset.css [type='search'] but for more elements */
}
This addition resulted in a subtle but noticeable change in the appearance of ALL form elements throughout my content, which had previously used a platform-specific default style for showing the “focus ring” around the active form element.
To address this, I opted to add :focus-visible { outline-offset:-1px; border-radius:0.25em; }
to TiddlyTools/Stylesheet/Adjustments as well as adjusting the primary
(“primary foreground”) color definition in one of my custom palettes (TiddlyTools/Palettes/Dark).
Although I completely understand the benefits of “improving” the TWCore CSS definitions, it seems that the goal of strong “backward compatibility” is sometimes overlooked in regard to changes in the CSS definitions. I’m not opposed to making these changes, but I do think that their impact on existing TW content needs to be more carefully considered and then strenuously advertised PRIOR to releasing a TWCore upgrade.
Your thoughts?
-e