Skip to content

Commit

Permalink
Divider - allow default prop override (#24840)
Browse files Browse the repository at this point in the history
* allow props to override default divider values when necessary

* change file
  • Loading branch information
micahgodbolt authored Sep 16, 2022
1 parent b7395d6 commit 7c868d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "fix: Divider - allow props to override default values",
"packageName": "@fluentui/react-divider",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export const useDivider_unstable = (props: DividerProps, ref: React.Ref<HTMLElem
},

root: getNativeElementProps('div', {
...props,
ref,
role: 'separator',
'aria-orientation': vertical ? 'vertical' : 'horizontal',
'aria-labelledby': props.children ? dividerId : undefined,
...props,
ref,
}),
wrapper: resolveShorthand(wrapper, {
required: true,
Expand Down

0 comments on commit 7c868d1

Please sign in to comment.