-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat(react-tabster): adds customizeSelector
to createCustomFocusIndicatorStyle
method
#29209
Conversation
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 614 | 643 | 5000 | |
Button | mount | 326 | 310 | 5000 | |
Field | mount | 1121 | 1104 | 5000 | |
FluentProvider | mount | 682 | 685 | 5000 | |
FluentProviderWithTheme | mount | 76 | 86 | 10 | |
FluentProviderWithTheme | virtual-rerender | 61 | 66 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 76 | 10 | |
InfoButton | mount | 6 | 13 | 5000 | |
MakeStyles | mount | 861 | 866 | 50000 | |
Persona | mount | 1715 | 1661 | 5000 | |
SpinButton | mount | 1341 | 1329 | 5000 |
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 e33852b:
|
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: aef09fc324e71a15a10a6a3c1c7ed556e2775725 (build) |
🕵 fluentuiv9 No visual regressions between this PR and main |
Can you please share CSS that needs to be generated? As I see, it's not really needed: |
Problem here is the order, in the case of the TreeItem I'd use a children selector + attribute selector, it won't be equivalent |
23e4dd1
to
2aeeb26
Compare
2aeeb26
to
e33852b
Compare
customizeSelector
to createCustomFocusIndicatorStyle
method
* master: fix(react-dialog): use makeResetStyles for base dialog components styles (microsoft#29280) chore(react-tags-preview): update props descriptions (microsoft#29287) chore: bump swc core to mitigate transpilation memory leaks (microsoft#29253) feat: adds customizeSelector to createCustomFocusIndicatorStyle method (microsoft#29209) applying package updates Updated TooltipBestPractices to include accessibility best practices (microsoft#29284) fix: BreadcrumbItem should use makeResetStyles for base styles (microsoft#29278)
Previous Behavior
At the moment there's no way to modify the selector internally used to indicate if an element is focused.
New Behavior
customizeSelector
method to allow the customization of the selector of focus stylesThis allows the customization of the selector, allowing ,for example, the possibility of selecting a different element on the focusing of a given element.
This is useful for the use case of
TreeItem
andTreeItemLayout
, where the focused element will be theTreeItem
but the outline would be better positioned if it was visible relative to theTreeItemLayout
element inside ofTreeItem