split button with Severities does not render on hover

Post Reply
AlainD.
Posts: 20
Joined: 14 Jun 2018, 22:00

04 Mar 2020, 16:58

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>;
};

merve7
Posts: 603
Joined: 12 Sep 2017, 10:44

11 Mar 2020, 10:49

Hi,
We fixed it for the next release.

Post Reply

Return to “Sapphire - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest