Skip to content

Commit

Permalink
Fix #5862: Divider not using className (#5867)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 31, 2024
1 parent 1b98405 commit 1f29510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/divider/Divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from 'react';
import { PrimeReactContext } from '../api/Api';
import { useHandleStyle } from '../componentbase/ComponentBase';
import { useMergeProps } from '../hooks/Hooks';
import { classNames } from '../utils/Utils';
import { DividerBase } from './DividerBase';

export const Divider = React.forwardRef((inProps, ref) => {
Expand All @@ -28,7 +29,7 @@ export const Divider = React.forwardRef((inProps, ref) => {
{
ref: elementRef,
style: sx('root'),
className: cx('root', { horizontal, vertical }),
className: classNames(props.className, cx('root', { horizontal, vertical })),
'aria-orientation': props.layout,
role: 'separator'
},
Expand Down

0 comments on commit 1f29510

Please sign in to comment.