Skip to content

Commit

Permalink
Fix CSS specificity, where canvas's solutionToolbarButton's backgroun…
Browse files Browse the repository at this point in the history
…d-color now takes precedence over EuiButton's primary styles
  • Loading branch information
Chandler Prall committed Nov 5, 2022
1 parent 16ce9f8 commit 37b1922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const SolutionToolbarButton = ({ label, primary, className, ...rest }: Pr
{...rest}
size="m"
color={primary ? 'primary' : 'text'}
className={`solutionToolbarButton ${className}`}
className={`${primary ? '' : 'solutionToolbarButton'} ${className}`}
fill={primary}
>
{label}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
*/

import React, { useState } from 'react';
import { EuiPopover } from '@elastic/eui';
import { Props as EuiPopoverProps } from '@elastic/eui/src/components/popover/popover';
import { EuiPopover, EuiPopoverProps } from '@elastic/eui';

import { SolutionToolbarButton, Props as ButtonProps } from './button';

Expand Down

0 comments on commit 37b1922

Please sign in to comment.