Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Observability] [Exploratory view] update v7 button styles #100113

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function DataTypesCol({ seriesId }: { seriesId: string }) {
<FlexGroup direction="column" gutterSize="xs">
{dataTypes.map(({ id: dataTypeId, label }) => (
<EuiFlexItem key={dataTypeId}>
<EuiButton
<Button
size="s"
iconSide="right"
iconType="arrowRight"
Expand All @@ -53,7 +53,7 @@ export function DataTypesCol({ seriesId }: { seriesId: string }) {
}}
>
{label}
</EuiButton>
</Button>
</EuiFlexItem>
))}
</FlexGroup>
Expand All @@ -63,3 +63,7 @@ export function DataTypesCol({ seriesId }: { seriesId: string }) {
const FlexGroup = styled(EuiFlexGroup)`
width: 100%;
`;

const Button = styled(EuiButton)`
will-change: transform;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function ReportTypesCol({ seriesId, reportTypes }: Props) {
<FlexGroup direction="column" gutterSize="xs">
{reportTypes.map(({ id: reportType, label }) => (
<EuiFlexItem key={reportType}>
<EuiButton
<Button
fullWidth
size="s"
iconSide="right"
Expand All @@ -67,7 +67,7 @@ export function ReportTypesCol({ seriesId, reportTypes }: Props) {
}}
>
{label}
</EuiButton>
</Button>
</EuiFlexItem>
))}
</FlexGroup>
Expand All @@ -84,3 +84,7 @@ export const SELECTED_DATA_TYPE_FOR_REPORT = i18n.translate(
const FlexGroup = styled(EuiFlexGroup)`
width: 100%;
`;

const Button = styled(EuiButton)`
will-change: transform;
`;