Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Update terra-base and terra-i18n packages #2288

Merged
merged 50 commits into from
Mar 27, 2019

Conversation

bjankord
Copy link
Contributor

@bjankord bjankord commented Mar 19, 2019

Summary

BREAKING CHANGES

@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 19, 2019 15:51 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 19, 2019 18:09 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 19, 2019 18:30 Inactive
@bjankord bjankord marked this pull request as ready for review March 19, 2019 18:36
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 10:56 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 11:33 Inactive
@bjankord bjankord force-pushed the update-base-and-i18n-packages branch from 9798777 to b63c469 Compare March 23, 2019 15:05
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 15:05 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 15:07 Inactive
@bjankord bjankord force-pushed the update-base-and-i18n-packages branch from 1b43992 to b63c469 Compare March 23, 2019 15:08
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 15:08 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 15:09 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 23, 2019 15:44 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 25, 2019 15:30 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 25, 2019 16:13 Inactive
@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 25, 2019 16:15 Inactive
@@ -46,7 +46,7 @@ const defaultProps = {
isOpen: false,
backgroundStyle: BackgroundStyles.LIGHT,
isRelativeToContainer: false,
rootSelector: '[data-terra-base]',
rootSelector: '#root',
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems we're making an assumption that the there is a root selector present. That assumption works for terra-dev-site and most orion apps, but it's not guaranteed that apps will have the root selector. If we want to change this from the base selector we might want to open it up to a prop but default to root and document it on the readme.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have a prop for this already named rootSelector. This line sets the default value based on that assumption that there is an id="root" in the DOM. For apps that don't have that id attribute, they can change it by passing a different selector to the rootSelector prop. I can update the prop type documentation to be more clear about this.

Copy link
Contributor

Choose a reason for hiding this comment

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

If we already have a prop for this i don't think you have to document more. I should have looked more deeply for the doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the doc, the doc referenced a data attribute that was on terra-base div that used to be rendered. We've removed that div to fix terra-base fill issues, but with that, we needed to update the rootSelector we default to. c7e816f

@bjankord bjankord temporarily deployed to terra-core-deployed-pr-2288 March 26, 2019 14:14 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants