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(react-avatar): update styles to not use CSS shorthands #20801

Merged
merged 2 commits into from
Nov 30, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "update styles to not use CSS shorthands",
"packageName": "@fluentui/react-avatar",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarActive.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Active = (props: Partial<AvatarProps>) => (
<div style={{ display: 'flex', gap: '32px' }}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const ActiveAppearance = (props: Partial<AvatarProps>) => (
<div style={{ display: 'flex', gap: '32px' }}>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarBadge.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Badge = (props: Partial<AvatarProps>) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarColor.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Color = (props: Partial<AvatarProps>) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarColorBrand.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const ColorBrand = (props: Partial<AvatarProps>) => <Avatar {...props} color="brand" />;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const ColorColorful = (props: Partial<AvatarProps>) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarColorNeutral.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const ColorNeutral = (props: Partial<AvatarProps>) => <Avatar color="neutral" />;

Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarDefault.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Default = (props: Partial<AvatarProps>) => <Avatar {...props} />;
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarGetInitials.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

const formatter = (name: string, isRTL: boolean) => {
return `${name[0]} ${name[name.length - 1]}`;
Expand Down
3 changes: 2 additions & 1 deletion packages/react-avatar/src/AvatarIcon.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Guest20Regular } from '@fluentui/react-icons';

import { Avatar, AvatarProps } from './index';

export const Icon = (props: Partial<AvatarProps>) => {
return <Avatar {...props} icon={<Guest20Regular />} />;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarIdForColor.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const IdForColor = (props: Partial<AvatarProps>) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarImage.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Image = (props: Partial<AvatarProps>) => (
<Avatar
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarName.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Name = (props: Partial<AvatarProps>) => <Avatar {...props} name="Katri Athokas" />;

Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarShape.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Shape = (props: Partial<AvatarProps>) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-avatar/src/AvatarSize.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Avatar, AvatarProps } from './index'; // codesandbox-dependency: @fluentui/react-components ^9.0.0-beta
import { Avatar, AvatarProps } from './index';

export const Size = (props: Partial<AvatarProps>) => (
<>
Expand Down
Loading