Skip to content

Commit

Permalink
Merge pull request #533 from catho/QTM-548
Browse files Browse the repository at this point in the history
fix(QTM-548): Size adjustment in content when there is no icon
  • Loading branch information
MarcosViniciusPC authored Dec 26, 2023
2 parents 153bbff + b292232 commit 9516969
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/Alert/Alert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Content = styled.div`
align-items: start;
display: flex;
svg + span {
& > span {
flex: 1;
}
`;
Expand Down
14 changes: 7 additions & 7 deletions components/Alert/__snapshots__/Alert.unit.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports[`Alert component Should match a skin snapshot 1`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down Expand Up @@ -296,7 +296,7 @@ exports[`Alert component Should match a skin snapshot 2`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down Expand Up @@ -499,7 +499,7 @@ exports[`Alert component Should match a skin snapshot 3`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down Expand Up @@ -702,7 +702,7 @@ exports[`Alert component Should match a skin snapshot 4`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down Expand Up @@ -905,7 +905,7 @@ exports[`Alert component Should match a skin snapshot 5`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down Expand Up @@ -1108,7 +1108,7 @@ exports[`Alert component Should match the snapshot of a simple alert 1`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down Expand Up @@ -1275,7 +1275,7 @@ exports[`Alert component Should match the snapshot with an icon 1`] = `
display: flex;
}
.c2 svg + span {
.c2 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
Expand Down
3 changes: 3 additions & 0 deletions stories/Alert/Alert.regression-test.story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Default.args = { ...props };
export const DefaultWithoutClose = Template.bind({});
DefaultWithoutClose.args = { ...props, onClose: undefined };

export const DefaultWithoutIcon = Template.bind({});
DefaultWithoutIcon.args = { ...props, icon: undefined };

export const SkinPrimary = Template.bind({});
SkinPrimary.args = {
...Default.args,
Expand Down

0 comments on commit 9516969

Please sign in to comment.