-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Milestone
Description
TLDR;
Table :first/:last-child css declarations are relics that should be standardized. As per a recent conversation w/ @lboehling, :first/:last-child th/td padding definitions can/should be simplified, while inset updates should be optional.
Why this is important:
:first/:last-childare detached:pseudoelements and are calculated by the browser on every page- These selectors cause a
force-reflow, which significantly impacts LCP (Largest Contentful Paint), which is the time the largest content element in the viewport is rendered to the screen. - It's unnecessary
This update includes
- Remove default
:first/:last-childpadding modifications - Add optional
pf-m-inset-[sm, md, lg, xl]:first/:last-childpadding modifier
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done