Closed brianchristopherbrady closed 2 weeks ago
π€ This report was generated against 12da47698c9121c0345c2f0db481cbae7a91b66e
Size Auditor did not detect a change in bundle size for any component!
Baseline commit: 12da47698c9121c0345c2f0db481cbae7a91b66e (build)
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 54335d93aa4244029fb606915ce81ebf50be101b:
Sandbox | Source |
---|---|
@fluentui/react 8 starter | Configuration |
@fluentui/react-components 9 starter | Configuration |
@brianchristopherbrady please update your PR to point to master following this guide: https://github.com/microsoft/fluentui/pull/31361
Removal the dependency on the FAST Foundation's Select component. Instead, integrated the necessary code directly into our project. This change aims to enhance control over the component's functionality and streamline its integration with our existing codebase.
Dropdown
Design Spec
Link to Dropdown Design Spec in Figma
Engineering Spec
The Fluent WC3 Dropdown is a form associated component that extends from the FAST Select FAST Select and is intended to be as close to the Fluent UI React 9 Dropdown implementation as possible. However, due to the nature of web components there will not be 100% parity between the two.
Class:
Dropdown
Component Name:
fluent-dropdown
Superclass
FormAssociatedSelect
@microsoft/fast-foundation
Static Fields
slottedOptionFilter
Fields
appearance
{ outline: 'outline', underline: 'underline', filledDarker: 'filled-darker', filledLighter: 'filled-lighter' }
outline
cleanup
() => void
disabled
boolean
displayValue
string
length
number
multiple
boolean
open
boolean
false
options
FlunetListboxOption[]
proxy
selectedIndex
number
-1
selectedOptions
FluentListboxOption[]
[]
size
number
control-size
{ small: 'small', medium: 'medium', large: 'large' }
value
string
Attributes
appearance
disabled
multiple
open
control-size
Methods
selectFirstOption
void
setPositioning
void
setSelectedOptions
Events
change
input
CSS Parts
control
indicator
listbox
selected-value
Slots
button-container
content
end
indicator
selected-value
Suggested Template
selectTemplate
from FastFoundationAccessibility
W3 Select Spec
WAI-ARIA Roles, States, and Properties
<fluent-dropdown>
aria-activedescendant
aria-controls
aria-expanded
aria-haspopup
listbox
current-value
role
combobox
tabindex
0
<div class="listbox".. />
role
listbox
Preparation
Fluent Web Component v3 v.s Fluent React 9
Component and Slot Mapping
<Dropdown>
<fluent-dropdown>
<Option>
<fluent-option>
Additional Deltas and Future Work
Persona
Component - ThePersona
component which can be used inside anOption
to create additional styling for options is available in FUIRv9 but not yet in the FUI WC3 component library.Option Grouping - Our dropdown component currently does not support option grouping. In order to provide this functionality, we need to add support for grouped options to the FAST implimentation.