-
Notifications
You must be signed in to change notification settings - Fork 15
chore(deps): update btn deps #168
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
Changes from all commits
0868ce9
b1f8ba8
c293d90
ad2e893
a3af144
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ function CallToAction(props) { | |
| throw new Error('<CallToAction /> `links` must have both a title and a URL') | ||
| } | ||
| return ( | ||
| <div className={`g-call-to-action variant-${variant} theme-${theme}}`}> | ||
| <div className={`g-call-to-action variant-${variant} theme-${theme}`}> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix: as the classname wasn't |
||
| <div className="g-grid-container"> | ||
| {heading && ( | ||
| <h2 data-testid="heading" className="g-type-display-2"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| "Zach Shilton" | ||
| ], | ||
| "dependencies": { | ||
| "@hashicorp/react-button": "^2.2.4" | ||
| "@hashicorp/react-button": "^4.1.0" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we going to have to update all of these again when we release the breaking change with colors??... I felt like this was something Lerna would take care of, but I guess not?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sort of like, should this just be a peer dep??
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think Lerna should take care of this - I made the mistake of manually bumping versions in recent I don't have a super deep understanding of peer deps vs direct ones, but based on my understanding so far |
||
| }, | ||
| "peerDependencies": { | ||
| "@hashicorp/nextjs-scripts": ">=16.x" | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -188,7 +188,11 @@ class CaseStudySlider extends Component { | |
| /> | ||
| </a> | ||
| </div> | ||
| <div className="feature-content g-type-body"> | ||
| <div | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dark and light theme was broken on this component. |
||
| className={`feature-content g-type-body ${ | ||
| dark ? 'dark' : 'light' | ||
| }`} | ||
| > | ||
| {single && ( | ||
| <div className="single-logo"> | ||
| <Logo dark={dark} image={caseStudy.company} /> | ||
|
|
@@ -207,7 +211,10 @@ class CaseStudySlider extends Component { | |
| }} | ||
| /> | ||
| <Button | ||
| theme={dark ? 'light-outline' : 'dark-outline'} | ||
| theme={{ | ||
| variant: 'secondary', | ||
| background: dark ? 'dark' : 'light', | ||
| }} | ||
| title={caseStudy.buttonLabel || 'Read Case Study'} | ||
| url={caseStudyLink} | ||
| /> | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,6 +95,9 @@ | |
|
|
||
| & .slider-frame { | ||
| & .case-study { | ||
| & .dark { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Text wasn't showing on dark. |
||
| color: white; | ||
| } | ||
| & .feature-image { | ||
| margin-bottom: 2rem; | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,7 +58,7 @@ class LogoGrid extends Component { | |
| <Button | ||
| title={`${c.name} Website`} | ||
| url={c.link} | ||
| theme="dark-outline" | ||
| theme={{ variant: 'secondary' }} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updates to new API |
||
| external={true} | ||
| /> | ||
| )} | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
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.
Buttondidn't seem to actually be affected by dark or light theme values, so I added back in that classname. LMK if that's not wanted, but note that other components depend on this property.