Skip to content

Conversation

@bsunderhus
Copy link
Contributor

@bsunderhus bsunderhus commented Sep 26, 2023

Previous Behavior

Focus outline is on the TreeItem component as this is the actual focused component, this is a problem on nested trees as the TreeItem will contain inside of it a subtree with more tree items

image

New Behavior

Focus outline should be on the TreeItemLayout component (although the actual focus is on the TreeItem), this way the focus will be visually on a single element even when focusing on a tree item with other tree items inside of it.

image

Related Issue(s)

  • Fixes #

@bsunderhus bsunderhus self-assigned this Sep 26, 2023
@bsunderhus bsunderhus marked this pull request as ready for review September 26, 2023 09:44
@bsunderhus bsunderhus requested a review from a team as a code owner September 26, 2023 09:44
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 26, 2023

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

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

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.227 kB
19.584 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
206.783 kB
59.085 kB
react-components
react-components: FluentProvider & webLightTheme
40.793 kB
13.521 kB
react-portal-compat
PortalCompatProvider
6.503 kB
2.22 kB
🤖 This report was generated against f61033d77d6852838c580bfa7379d026128c2dbb

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
InfoButton mount 11 10 5000 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 669 636 5000
Button mount 325 319 5000
Field mount 1145 1167 5000
FluentProvider mount 706 707 5000
FluentProviderWithTheme mount 77 87 10
FluentProviderWithTheme virtual-rerender 69 74 10
FluentProviderWithTheme virtual-rerender-with-unmount 88 77 10
InfoButton mount 11 10 5000 Possible regression
MakeStyles mount 874 889 50000
Persona mount 1782 1707 5000
SpinButton mount 1406 1415 5000

@size-auditor
Copy link

size-auditor bot commented Sep 26, 2023

Asset size changes

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

Baseline commit: f61033d77d6852838c580bfa7379d026128c2dbb (build)

@bsunderhus bsunderhus changed the title chore: delegate focus outline to layout components chore(react-tree): delegate focus outline to layout components Sep 26, 2023
@bsunderhus bsunderhus force-pushed the react-tree/chore--focus-outline-on-layout branch from 41db45f to c77e932 Compare October 2, 2023 10:42
@bsunderhus bsunderhus force-pushed the react-tree/chore--focus-outline-on-layout branch from c77e932 to d2e6839 Compare October 2, 2023 14:50
@bsunderhus bsunderhus merged commit 3b210c9 into microsoft:master Oct 3, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 4, 2023
* master: (146 commits)
  remove a11y test ux from theme designer (microsoft#29379)
  feat: preview release (microsoft#29377)
  Fixed divider in the tooltip (microsoft#29357)
  fix (microsoft#29376)
  docs: Initial documentation pass (microsoft#29372)
  feat: Integrate Announce context (microsoft#29362)
  chore(react-tags): stable release (microsoft#29355)
  chore: delegate focus outline to layout components (microsoft#29293)
  Vertical bar chart line bug (microsoft#29299)
  applying package updates
  Adding axis title examples for line, area, vertical bar and vertical stacked bar charts (microsoft#29254)
  A11y: Pagination: Add tooltip for all icon buttons  (microsoft#29155)
  A11y: Fix aria attribute for page number and add correct role (microsoft#29349)
  feat: Implement motion for MessageBar (microsoft#29339)
  feat: creates getIntrinsicElementProps to replace getNativeElementProps on slots creation (microsoft#29310)
  chore: replace makeStyles with makeResetStyles (microsoft#29338)
  applying package updates
  ci(github/policies): remove bot rules that created and added `Component/Package $1`: labels on PRs (microsoft#29301)
  fix: handle multiple classes in PortalCompatProvider (microsoft#29351)
  applying package updates
  ...
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 4, 2023
* master: (49 commits)
  remove a11y test ux from theme designer (microsoft#29379)
  feat: preview release (microsoft#29377)
  Fixed divider in the tooltip (microsoft#29357)
  fix (microsoft#29376)
  docs: Initial documentation pass (microsoft#29372)
  feat: Integrate Announce context (microsoft#29362)
  chore(react-tags): stable release (microsoft#29355)
  chore: delegate focus outline to layout components (microsoft#29293)
  Vertical bar chart line bug (microsoft#29299)
  applying package updates
  Adding axis title examples for line, area, vertical bar and vertical stacked bar charts (microsoft#29254)
  A11y: Pagination: Add tooltip for all icon buttons  (microsoft#29155)
  A11y: Fix aria attribute for page number and add correct role (microsoft#29349)
  feat: Implement motion for MessageBar (microsoft#29339)
  feat: creates getIntrinsicElementProps to replace getNativeElementProps on slots creation (microsoft#29310)
  chore: replace makeStyles with makeResetStyles (microsoft#29338)
  applying package updates
  ci(github/policies): remove bot rules that created and added `Component/Package $1`: labels on PRs (microsoft#29301)
  fix: handle multiple classes in PortalCompatProvider (microsoft#29351)
  applying package updates
  ...
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.

3 participants