Skip to content

Conversation

@ling1726
Copy link
Contributor

Adds a VR test that focuses an element inside the positioned container as soon as it is open to prevent regression for scroll jumps.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 26, 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 8454944:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 26, 2022

📊 Bundle size report

🤖 This report was generated against 1940164411685db2967f8452406bb703b94ec266

@size-auditor
Copy link

size-auditor bot commented Feb 26, 2022

Asset size changes

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

Baseline commit: 1940164411685db2967f8452406bb703b94ec266 (build)

@ling1726 ling1726 force-pushed the chore/positioning-test branch from cd8b517 to 3db8d21 Compare February 26, 2022 14:38
);
};

storiesOf('Positioning - scroll', module).addStory('no jump', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separate category here because the position: fixed; centering for other stories doesn't play nicely with scrolling.

Adding overflow: scroll to the previous stories need an update of all the screenshots

</Portal>
) : (
<Box ref={containerRef}>
Focusable element <button ref={buttonRef}>Focus me</button>{' '}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Focusable element <button ref={buttonRef}>Focus me</button>{' '}
Focusable element <button ref={buttonRef}>Focus me</button>

const floating = renderPortal ? (
<Portal>
<Box ref={containerRef}>
Focusable element <button ref={buttonRef}>Focus me</button>{' '}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Focusable element <button ref={buttonRef}>Focus me</button>{' '}
Focusable element <button ref={buttonRef}>Focus me</button>


const floating = renderPortal ? (
<Portal>
<Box ref={containerRef}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can extract Box to a variable to avoid duplication

@msft-fluent-ui-bot
Copy link
Collaborator

Because this pull request has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

The pull request will still be available for reference. If it's still relevant to merge at some point, you can reopen or make a new version based on the latest code.

@msft-fluent-ui-bot msft-fluent-ui-bot added the Resolution: Soft Close Soft closing inactive issues over a certain period label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Resolution: Soft Close Soft closing inactive issues over a certain period

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants