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

STCOM-1408: Add marginTop0 class to MessageBanner component #2425

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

mariia-aloshyna
Copy link
Contributor

Introduce the marginTop0 class to the MessageBanner component to remove the default top margin.

Refs

https://folio-org.atlassian.net/browse/STCOM-1408

@mariia-aloshyna mariia-aloshyna requested a review from a team as a code owner February 12, 2025 12:21
Copy link

github-actions bot commented Feb 12, 2025

Bigtest Unit Test Results

    1 files  ±0      1 suites  ±0   15s ⏱️ ±0s
1 536 tests +1  1 528 ✅ +1  8 💤 ±0  0 ❌ ±0 
1 538 runs  +1  1 530 ✅ +1  8 💤 ±0  0 ❌ ±0 

Results for commit c836e98. ± Comparison against base commit 2802f20.

♻️ This comment has been updated with latest results.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

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

I'm lost here -- I see the prop and the style, but not where anything actually happens with that prop. How does this work?

@mariia-aloshyna
Copy link
Contributor Author

I'm lost here -- I see the prop and the style, but not where anything actually happens with that prop. How does this work?

Oh hi @zburke I am going to introduce it in this PR you can see from the screenshot that there is an extra space between message banner and top border

@zburke
Copy link
Member

zburke commented Feb 13, 2025

Sorry my question wasn't clear, @mariia-aloshyna. What I meant was, I see this new prop on line 49, but it's never applied anywhere. The remaining props are collected into rest (line 50) which is then spread onto <Element> (line 110) but I don't see where marginTop0 is applied to a DOM element. What's the magic ✨ ?

@mariia-aloshyna
Copy link
Contributor Author

Sorry my question wasn't clear, @mariia-aloshyna. What I meant was, I see this new prop on line 49, but it's never applied anywhere. The remaining props are collected into rest (line 50) which is then spread onto <Element> (line 110) but I don't see where marginTop0 is applied to a DOM element. What's the magic ✨ ?

No magic, I just missed a piece of code 🤦‍♀️. Updated the PR, thank you for catching it, now it works as expected.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

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

No worries, PR review working exactly like it supposed to 🤝

How did that test ever pass though? 🤔

@mariia-aloshyna mariia-aloshyna merged commit 71f391e into master Feb 14, 2025
15 checks passed
@mariia-aloshyna mariia-aloshyna deleted the STCOM-1408 branch February 14, 2025 12:25
github-actions bot pushed a commit that referenced this pull request Feb 14, 2025
Introduce the marginTop0 class to the MessageBanner component to remove
the default top margin.

## Refs
https://folio-org.atlassian.net/browse/STCOM-1408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants