Page 1 of 1

split button with Severities does not render on hover

Posted: 04 Mar 2020, 16:58
by AlainD.
Hi,

When applying a severity to a splitbutton, the severity is not applied on mouse hover: instead, the default blue style is applied.
The severity color is applied on the split button when not hovered, but not when hovered.

Example:

Code: Select all

import React from 'react';
import { SplitButton } from 'primereact/splitbutton';

export default function Example() {
  const items = [
    {label: "one", command: (e) => {e.preventDefault()}},
    {label: "two", command: (e) => {e.preventDefault()}}
  ];

  return <SplitButton
    label="Save"
    icon="pi pi-plus"
    className="p-button-warning"
    model={items}
    onClick={(e) => {e.preventDefault()}}
  ></SplitButton>;
};

Re: split button with Severities does not render on hover

Posted: 11 Mar 2020, 10:49
by merve7
Hi,
We fixed it for the next release.