-
Notifications
You must be signed in to change notification settings - Fork 496
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: apply layout components throughout #3256
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3c1308c:
|
Pull Request Test Coverage Report for Build 111837807
💛 - Coveralls |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e8a6d0e:
|
@@ -7,6 +7,7 @@ import {ClayDropDownWithItems} from '@clayui/drop-down'; | |||
import {ClayCheckbox} from '@clayui/form'; | |||
import ClayIcon from '@clayui/icon'; | |||
import ClayLabel from '@clayui/label'; | |||
import * as ClayLayout from '@clayui/layout'; |
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 one is taken as an example, I've seen similar cases throughout the commit, but we seem to be importing all and then just using one subcomponent. In this case <ClayLayout.ContentCol
on lines 140 & 163
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.
Just updated to have a default export so that we don't have to do this
@@ -33,7 +34,9 @@ const ClayManagementToolbar: React.FunctionComponent<IProps> & { | |||
} | |||
)} | |||
> | |||
<div className="container-fluid container-fluid-max-xl">{children}</div> | |||
<ClayLayout.ContainerFluid size="xl"> |
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.
Is size
really necessary as it's the default already?
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.
it is not necessary... i just forgot there was a default
@@ -18,7 +19,7 @@ export default () => { | |||
const [selectedItems, setSelectedItems] = React.useState<any>([]); | |||
|
|||
return ( | |||
<div className="container-fluid"> | |||
<ClayLayout.ContainerFluid> |
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.
Interestingly, this is would actually be xl
because of the defaults
@@ -537,7 +538,7 @@ storiesOf('Demos|Recharts', module) | |||
</div> | |||
</div> | |||
|
|||
<div className="container-fluid container-view"> | |||
<ClayLayout.ContainerFluid view> |
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.
Same, this would actually now be xl
because of defaults which might not be so bad after all 😉
Going to merge for release |
fixes #3255