Skip to content

add baseline.css to normalize browser defaults (#6805)#6806

Open
mark-tate wants to merge 1 commit into
mainfrom
add-baseline
Open

add baseline.css to normalize browser defaults (#6805)#6806
mark-tate wants to merge 1 commit into
mainfrom
add-baseline

Conversation

@mark-tate

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
saltdesignsystem Ready Ready Preview, Comment Jul 6, 2026 3:14pm

Request Review

@changeset-bot

changeset-bot Bot commented Jul 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b4586a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@salt-ds/theme Minor
@salt-ds/ag-grid-theme Major
@salt-ds/highcharts-theme Major
@salt-ds/react-resizable-panels-theme Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

/* Modern box-sizing — every element (and pseudo-element) uses
* border-box so widths / heights include padding and border. */
*,
*::before,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Salt component will still have to handle this

Comment on lines +71 to +75
margin-block: 0;
margin-inline: 0;
padding: 0;
padding-block: 0;
padding-inline: 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shorthand CSS here isn't supported by our minimum browsers

h4,
h5,
h6 {
font-size: inherit;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this?


/* Form controls — inherit typography so bare inputs / buttons don't
* fall back to the browser's system font. */
input,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or this

color: inherit;
}

/* Bare `<button>` — strip UA chrome. Salt's `<Button>` component

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should care about this? It's more likely to break things than fix

}

/* Fieldsets ship with a browser-default border that is almost
* never wanted. Padding is already zeroed above. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like a level of opinionation we don't need to have?


/* Collapse table borders by default so bare tables don't render
* with the browser's "double line" cell borders. */
table {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a table component

/* Anchor color inherits from the surrounding text so unthemed
* `<a>` elements do not render as the browser's default bright
* blue. Salt's `<Link>` component still applies its own treatment. */
a {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also don't think we should do this either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants