Skip to content

Commit

Permalink
fix(graphCardChartLegend): sw-235 style, spacing (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Dec 16, 2022
1 parent 28ea22d commit 8f2574b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports[`GraphCardChartLegend Component should render a basic component: basic 1
position="top"
>
<span
className="pf-c-button pf-m-link"
className="pf-c-button pf-m-link curiosity-usage-graph__legend-item-wrapper"
>
<Button
className="curiosity-usage-graph__legend-item"
Expand Down Expand Up @@ -132,7 +132,7 @@ exports[`GraphCardChartLegend Component should render basic data: data 1`] = `
position="top"
>
<span
className="pf-c-button pf-m-link"
className="pf-c-button pf-m-link curiosity-usage-graph__legend-item-wrapper"
>
<Button
className="curiosity-usage-graph__legend-item"
Expand Down Expand Up @@ -173,7 +173,7 @@ exports[`GraphCardChartLegend Component should render basic data: data 1`] = `
position="top"
>
<span
className="pf-c-button pf-m-link"
className="pf-c-button pf-m-link curiosity-usage-graph__legend-item-wrapper"
>
<Button
className="curiosity-usage-graph__legend-item"
Expand Down Expand Up @@ -209,7 +209,7 @@ exports[`GraphCardChartLegend Component should render basic data: data 1`] = `
position="top"
>
<span
className="pf-c-button pf-m-link"
className="pf-c-button pf-m-link curiosity-usage-graph__legend-item-wrapper"
>
<Button
className="curiosity-usage-graph__legend-item"
Expand Down Expand Up @@ -250,7 +250,7 @@ exports[`GraphCardChartLegend Component should render basic data: data 1`] = `
position="top"
>
<span
className="pf-c-button pf-m-link"
className="pf-c-button pf-m-link curiosity-usage-graph__legend-item-wrapper"
>
<Button
className="curiosity-usage-graph__legend-item"
Expand Down
2 changes: 1 addition & 1 deletion src/components/graphCard/graphCardChartLegend.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const GraphCardChartLegend = ({
enableFlip
distance={5}
>
<span className="pf-c-button pf-m-link">{button}</span>
<span className="pf-c-button pf-m-link curiosity-usage-graph__legend-item-wrapper">{button}</span>
</Tooltip>
);
}
Expand Down
19 changes: 14 additions & 5 deletions src/styles/_usage-graph.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,23 @@
word-break: break-word;
}

&__legend-item {
&:first-child {
&__legend-item-wrapper {
> .pf-c-button {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
};
}

@media (min-width: $pf-global--breakpoint--lg) {
&__legend-item-wrapper {
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}

&__tooltip {
color: var(--pf-global--Color--light-100);
Expand Down

0 comments on commit 8f2574b

Please sign in to comment.