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
fix(core-price-lockup): fixing horizontal alignment issue #836
Conversation
wrapped a div with inline-block and alignment left to account FlexGrid Row horizontal alignment changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix! Please address my two comments and I'll get this merged soon.
@@ -1,6 +1,11 @@ | |||
@import '~@tds/core-responsive/responsive'; | |||
@import '../../shared/scss/typography'; | |||
|
|||
.wrapperAlignment { | |||
text-align: left; | |||
display: inline-block; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If i remove inline-block (this is when I include the code inside box component), horizontal alignment does not work from FlexGrid.Row.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we release this using inline-block
then it will be a breaking change because it would cause subsequent inline elements to appear inline, for example:
<PriceLockup
size="medium"
topText="Starting at"
price="25"
rateText="/month"
bottomText="$68 /month after 3 months"
signDirection="left"
/>
<ButtonLink href="#">Click me</ButtonLink>
We have backlogged a patch to have Price Lockup have a max width, that way the hairline divider's width won't need to be controlled by the developer via FlexGrid: https://telusdigital.atlassian.net/browse/TDS-1042
removed extra div
Thanks for the update, please address the following:
|
removing inline-block and updating screenshots and tests
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks ready for QA 👍
Please wait for Breadcrumbs component to be released before merging. Please squash and merge this PR.
* fix(core-price-lockup): fixing horizontal alignment issue wrapped a div with inline-block and alignment left to account FlexGrid Row horizontal alignment changes * fix(core-price-lockup): adjustments to horizontal alignment removed extra div * style(core-price-lockup): removing inline-block removing inline-block and updating screenshots and tests
Related issues
#825
Description
Checklist before submitting pull request
yarn prepr
locally