Skip to content

Commit feeee19

Browse files
fix(ui): replaces css fn with css calc (#12520)
1 parent e9cda1e commit feeee19

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

packages/next/src/elements/DocumentHeader/Tabs/Tab/TabLink.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const DocumentTabLink: React.FC<{
5959
className={[baseClass, isActive && `${baseClass}--active`].filter(Boolean).join(' ')}
6060
disabled={isActive}
6161
el={!isActive || href !== pathname ? 'link' : 'div'}
62+
margin={false}
6263
newTab={newTab}
6364
size="medium"
6465
to={!isActive || href !== pathname ? hrefWithLocale : undefined}

packages/richtext-lexical/src/features/blocks/client/component/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ export const BlockComponent: React.FC<Props> = (props) => {
437437
<Pill
438438
className={`${baseClass}__block-pill ${baseClass}__block-pill-${formData?.blockType}`}
439439
pillStyle="white"
440+
size="small"
440441
>
441442
{blockDisplayName ?? formData?.blockType}
442443
</Pill>

packages/ui/src/elements/Button/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
--btn-icon-border-color: currentColor;
176176
--btn-icon-padding: 0px; // This will be needed when we make icons go edge to edge instead of having built in padding in the svg code
177177
--btn-icon-content-gap: calc(var(--base) * 0.4);
178-
--margin-block: base(1.2);
178+
--margin-block: calc(var(--base) * 1.2);
179179
--btn-line-height: calc(var(--base) * 1.2);
180180

181181
border-radius: var(--style-radius-s);
@@ -233,7 +233,7 @@
233233
}
234234

235235
&.btn--size-small {
236-
padding: base(0.2);
236+
padding: calc(var(--base) * (0.2));
237237
}
238238
}
239239

packages/ui/src/fields/Blocks/BlockRow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export const BlockRow: React.FC<BlocksFieldProps> = ({
157157
<Pill
158158
className={`${baseClass}__block-pill ${baseClass}__block-pill-${row.blockType}`}
159159
pillStyle="white"
160+
size="small"
160161
>
161162
{getTranslation(block.labels.singular, i18n)}
162163
</Pill>

0 commit comments

Comments
 (0)