Skip to content

Commit

Permalink
fix: fix borderBottomRightRadius value casting error
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Apr 10, 2024
1 parent 1bbcb33 commit 47b36e9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
7 changes: 3 additions & 4 deletions apps/xplat-v9/stories/Button/ButtonStories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/** @jsxRuntime automatic */
/** @jsxImportSource @fluentui/react-jsx-runtime */

import * as React from 'react';

import 'react';
import { Default } from './ButtonDefault';
import { Shape } from './ButtonShape';
import { Appearance } from './ButtonAppearance';
Expand All @@ -14,8 +13,8 @@ export const ButtonStories = () => (
<div>
<h1>Default</h1>
<Default />
{/* <h1>Shape</h1>
<Shape /> */}
<h1>Shape</h1>
<Shape />
<h1>Appearance</h1>
<Appearance />
<h1>Size</h1>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Use 0 instead of '0' to better support RSD",
"packageName": "@fluentui/tokens",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { makeStyles as makeStylesCore } from '@griffel/core';
import { mergeClasses } from '@griffel/react';
import type { PartialTheme } from '@fluentui/react-theme';
import * as React_2 from 'react';
import { shorthands } from '@griffel/react';
import { shorthands } from '@griffel/core';
import { TextDirectionProvider } from '@griffel/react';
import type { Theme } from '@fluentui/react-theme';
import { useRenderer_unstable } from '@griffel/react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { shorthands } from '@griffel/react';
export { shorthands } from '@griffel/core';
2 changes: 1 addition & 1 deletion packages/tokens/etc/tokens.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// @public (undocumented)
export type BorderRadiusTokens = {
borderRadiusNone: string;
borderRadiusNone: string | 0;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/global/borderRadius.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { BorderRadiusTokens } from '../types';

export const borderRadius: BorderRadiusTokens = {
borderRadiusNone: '0',
borderRadiusNone: 0,
borderRadiusSmall: '2px',
borderRadiusMedium: '4px',
borderRadiusLarge: '6px',
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export type TypographyStyles = {
};

export type BorderRadiusTokens = {
borderRadiusNone: string;
borderRadiusNone: string | 0;
borderRadiusSmall: string;
borderRadiusMedium: string;
borderRadiusLarge: string;
Expand Down

0 comments on commit 47b36e9

Please sign in to comment.