Skip to content

feat: extend CardPreview logo slot to allow img elements#23902

Merged
theerebuss merged 3 commits into
microsoft:masterfrom
theerebuss:card-preview-slot-extension
Jul 14, 2022
Merged

feat: extend CardPreview logo slot to allow img elements#23902
theerebuss merged 3 commits into
microsoft:masterfrom
theerebuss:card-preview-slot-extension

Conversation

@theerebuss

Copy link
Copy Markdown
Contributor

Current Behavior

Slot has only div as permitted element.

New Behavior

Slot now allows img as an alternative element.

Related Issue(s)

#19336

@theerebuss theerebuss changed the title chore: extend CardPreview logo slot to allow img elements feat: extend CardPreview logo slot to allow img elements Jul 14, 2022
@theerebuss theerebuss changed the title feat: extend CardPreview logo slot to allow img elements feat: extend CardPreview logo slot to allow img elements Jul 14, 2022
@theerebuss theerebuss enabled auto-merge (squash) July 14, 2022 12:40
@theerebuss theerebuss mentioned this pull request Jul 14, 2022
37 tasks
@codesandbox-ci

codesandbox-ci Bot commented Jul 14, 2022

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit af2b70d:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam

fabricteam commented Jul 14, 2022

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-card
Card - All
66.431 kB
19.01 kB
react-card
Card
62.113 kB
17.911 kB
react-card
CardFooter
8.461 kB
3.555 kB
react-card
CardHeader
9.504 kB
3.896 kB
react-card
CardPreview
8.562 kB
3.61 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.057 kB
52.092 kB
react-components
react-components: FluentProvider & webLightTheme
31.883 kB
10.516 kB
🤖 This report was generated against 46367c1b21a4622ce10db25a037355e502f47b0c

@size-auditor

size-auditor Bot commented Jul 14, 2022

Copy link
Copy Markdown

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 46367c1b21a4622ce10db25a037355e502f47b0c (build)

@fabricteam

fabricteam commented Jul 14, 2022

Copy link
Copy Markdown
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1280 1267 5000
Button mount 886 878 5000
FluentProvider mount 1593 1594 5000
FluentProviderWithTheme mount 556 562 10
FluentProviderWithTheme virtual-rerender 520 527 10
FluentProviderWithTheme virtual-rerender-with-unmount 568 570 10
MakeStyles mount 1949 1942 50000
SpinButton mount 2410 2429 5000

@theerebuss theerebuss merged commit b61d5f0 into microsoft:master Jul 14, 2022
@theerebuss theerebuss deleted the card-preview-slot-extension branch July 14, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants