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

[LOOM-1284][BpkFlare] Fix class 2 CSS issues for BpkFlare #3389

Merged
merged 10 commits into from Apr 30, 2024
Merged

Conversation

metalix2
Copy link
Contributor

@metalix2 metalix2 commented Apr 26, 2024

Remember to include the following changes:

  • Ensure the PR title includes the name of the component you are changing so it's clear in the release notes for consumers of the changes in the version e.g [KOA-123][BpkButton] Updating the colour
  • README.md (If you have created a new component)
  • Component README.md
  • Tests
  • Storybook examples created/updated
  • Type declaration (.d.ts) files updated
  • For breaking changes or deprecating components/properties, migration guides added to the description of the PR. If the guide has large changes, consider creating a new Markdown page inside the component's docs folder and link it here

@metalix2 metalix2 added the patch Patch production bug label Apr 26, 2024
Copy link

github-actions bot commented Apr 26, 2024

Browser support

If this is a visual change, make sure you've tested it in multiple browsers.

Generated by 🚫 dangerJS against 261f16c

Copy link

Visit https://backpack.github.io/storybook-prs/3389 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3389 to see this build running in a browser.

Copy link

Visit https://backpack.github.io/storybook-prs/3389 to see this build running in a browser.

@@ -28,7 +28,6 @@
// https://developer.mozilla.org/en-US/docs/Web/CSS/margin
// By using `display: flex` we ensure that this container is the nearest block container
display: flex;
min-width: 10rem;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes centering issue when on mobile

@@ -42,7 +41,8 @@
// stylelint-disable-next-line unit-disallowed-list
bottom: -1px;
width: 700rem; // required for correct behaviour in IE
height: tokens.$bpk-flare-height-desktop;
// stylelint-disable-next-line unit-disallowed-list
height: calc(tokens.$bpk-flare-height-desktop - 1px);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes bleeding from the bottom -1px

@@ -56,20 +56,4 @@
height: tokens.$bpk-flare-height-mobile;
}
}

&__rounded-corner {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to the bpk-content-bubble scss file

@@ -44,6 +46,7 @@
}

&__container {
position: relative;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows us to use absolute positioning for the rounded-corners.

Copy link

Visit https://backpack.github.io/storybook-prs/3389 to see this build running in a browser.

getClassName('bpk-content-bubble__rounded-corner--trailing'),
];

if (flareProps?.svgClassName) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintain existing props for the corner svgs

Copy link

Visit https://backpack.github.io/storybook-prs/3389 to see this build running in a browser.

Copy link
Contributor

@mungodewar mungodewar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

packages/bpk-component-flare/src/BpkContentBubble.js Outdated Show resolved Hide resolved
packages/bpk-component-flare/src/BpkContentBubble.js Outdated Show resolved Hide resolved
metalix2 and others added 4 commits April 30, 2024 14:40
Co-authored-by: mungodewar <89925955+mungodewar@users.noreply.github.com>
Co-authored-by: mungodewar <89925955+mungodewar@users.noreply.github.com>
Copy link

Visit https://backpack.github.io/storybook-prs/3389 to see this build running in a browser.

@metalix2 metalix2 merged commit 65dda4d into main Apr 30, 2024
9 checks passed
@metalix2 metalix2 deleted the LOOM-1284 branch April 30, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Patch production bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants