view_components
view_components copied to clipboard
Update PostCSS build to pull in custom properties and add fallbacks to var call sites
Input
.Button {
position: relative;
font-size: var(--primer-text-body-size-medium);
font-weight: var(--base-text-weight-medium);
cursor: pointer;
user-select: none;
background-color: transparent;
border: var(--primer-borderWidth-thin) solid;
border-color: transparent;
border-radius: var(--primer-borderRadius-medium);
color: var(--color-btn-text);
transition: var(--primer-duration-fast) var(--primer-easing-easeInOut);
transition-property: color, fill, background-color, border-color;
text-align: center;
height: var(--primer-control-medium-size);
padding: 0 var(--primer-control-medium-paddingInline-normal);
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: var(--primer-control-medium-gap);
min-width: max-content;
}
Output diff between this PR and main
.Button {
position: relative;
- font-size: 14px;
- font-size: var(--primer-text-body-size-medium, 14px);
- font-weight: 500;
- font-weight: var(--base-text-weight-medium, 500);
+ font-size: var(--primer-text-body-size-medium,0.875rem);
+ font-weight: var(--base-text-weight-medium,500);
cursor: pointer;
-webkit-user-select: none;
- -moz-user-select: none;
user-select: none;
background-color: transparent;
- border: 1px solid;
- border: var(--primer-borderWidth-thin, 1px) solid;
+ border: var(--primer-borderWidth-thin,max(1px, 0.0625rem)) solid;
border-color: transparent;
- border-radius: 6px;
- border-radius: var(--primer-borderRadius-medium, 6px);
+ border-radius: var(--primer-borderRadius-medium,0.375rem);
color: var(--color-btn-text);
- transition: 80ms cubic-bezier(0.65, 0, 0.35, 1);
transition: var(--primer-duration-fast) var(--primer-easing-easeInOut);
transition-property: color, fill, background-color, border-color;
text-align: center;
- height: 32px;
- height: var(--primer-control-medium-size, 32px);
- padding: 0 12px;
- padding: 0 var(--primer-control-medium-paddingInline-normal, 12px);
+ height: var(--primer-control-medium-size,2rem);
+ padding: 0 var(--primer-control-medium-paddingInline-normal,0.75rem);
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
- gap: 8px;
- gap: var(--primer-control-medium-gap, 8px);
- min-width: -webkit-max-content;
- min-width: -moz-max-content;
+ gap: var(--primer-control-medium-gap,0.5rem);
min-width: max-content;
}
⚠️ No Changeset found
Latest commit: 75f10152392f7686e6b88334b4b85f2d61917661
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days.