Skip to content

Conversation

@sopranopillow
Copy link
Contributor

@sopranopillow sopranopillow commented Jun 16, 2022

Current Behavior

Border radius is ignored for the stack layout's outline. This is due to a bug in webkit browser where outline ignores both -webkit-border-radius and border-radius. For more details you can take a look at the bug filed in here.

New Behavior

Outline for stack layouts now works correctly in webkit browsers. To accomplish this, a border has to be added in an ::after pseudo-element. This affects useGroupChildClassName by having to differentiate when the hook is used for the overflowButton. Mostly so that the width can be calculated correctly because the button is applied a border that is not picked up by setting width: 100% in the pseudo-element.

Related Issue(s)

#23549 #22240

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 16, 2022

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 c422ba6:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 16, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-avatar
Avatar
46.031 kB
13.438 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
185.285 kB
51.364 kB
react-components
react-components: FluentProvider & webLightTheme
33.988 kB
11.108 kB
🤖 This report was generated against ed08fb6d86fc74667a93db7d2cf43286aaa21faf

@size-auditor
Copy link

size-auditor bot commented Jun 16, 2022

Asset size changes

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

Baseline commit: ed08fb6d86fc74667a93db7d2cf43286aaa21faf (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 16, 2022

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
FluentProviderWithTheme mount 949 886 10 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1657 1693 5000
Button mount 1226 1243 5000
FluentProvider mount 2903 2865 5000
FluentProviderWithTheme mount 949 886 10 Possible regression
FluentProviderWithTheme virtual-rerender 818 925 10
FluentProviderWithTheme virtual-rerender-with-unmount 954 967 10
MakeStyles mount 2570 2505 50000

@sopranopillow sopranopillow merged commit 6dbff62 into microsoft:master Jun 17, 2022
@sopranopillow sopranopillow deleted the avatargroup-stack-fix branch June 17, 2022 19:28
rohitpagariya pushed a commit to rohitpagariya/fluentui that referenced this pull request Jun 28, 2022
…sers. (microsoft#23576)

* fix outlines for stack layout in webkit browsers

* change files

* found better fix

* another way to fix this, looks like it will be the way to go

* fixing focus ring

* fixing focus ring

* fixing double border issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants