Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TT2 styles and typography in the single product's attributes table #37639

Merged
merged 3 commits into from Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/fix-37636-attributes-table
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fixed the attributes table styling in TT2 tabs content area
22 changes: 21 additions & 1 deletion plugins/woocommerce/client/legacy/css/twenty-twenty-two.scss
Expand Up @@ -594,9 +594,29 @@ ul.wc-tabs {
font-size: var(--wp--preset--font-size--small);
margin-left: 1em;

h2 {
// Hide repeated heading.
h2:first-of-type {
display: none;
}

// Attributes table styles.
table.woocommerce-product-attributes {
tbody {

td, th {
padding: 0.2rem 0.2rem 0.2rem 0;

p {
margin: 0;
}
}

th {
text-align: left;
padding-right: 1rem;
}
}
}
}

/**
Expand Down