Repository navigation
Closed
Description
Library
React Components / v9 (@fluentui/react-components)
System Info
System:
OS: Linux 6.5 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (32) x64 AMD EPYC 7763 64-Core Processor
Memory: 117.31 GB / 125.78 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Browsers:
Chrome: 126.0.6478.126Are you reporting Accessibility issue?
None
Reproduction
Bug Description
Actual Behavior
<Toolbar /> component does not respond to size prop, even though it is listed in types. <ToolbarButton /> responds to this prop, even though it is not listed in types.
Expected Behavior
<Toolbar /> size prop applies to nested <ToolbarButton /> components
Logs
No response
Requested priority
Blocking
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Activity
miroslavstastny commentedon Jul 25, 2024
By the spec,
sizeonToolbaronly affects spacing, not the button size. Applyingsizeto theToolbarButtonis not supported (although it seems to work) and disallowed by typings.ToolbarButtonshould enforce the button size.