Comments (19)
Thanks a lot @peterlazzarino for your help on this.
from styled-bootstrap-grid.
are you injecting the BaseCSS as outlined in the readme? Ive had this happen when I forget to add that component.
from styled-bootstrap-grid.
Also make sure your Cols are wrapped in a Row!
from styled-bootstrap-grid.
from styled-bootstrap-grid.
@asadmehmoodsatti can you please link to a repo where you can reproduce this issue so I can see the code?
from styled-bootstrap-grid.
Hi ,
Here is the code .
Hello Bootstrap Layout Hello Bootstrap Layout Hello Bootstrap Layout Hello Bootstrap Fluid Layoutfrom styled-bootstrap-grid.
@asadmehmoodsatti the code is printed as some text here. Can you please paste your JSX / the contents of your render function so this can be checked? Thanks
from styled-bootstrap-grid.
import React, { Component } from "react";
import { Container, Row, Col } from "styled-bootstrap-grid";
import { GridThemeProvider } from "styled-bootstrap-grid";
import { ThemeProvider } from "styled-components";
const gridTheme = {
breakpoints: {
// defaults below
xl: 1200,
lg: 992,
md: 768,
sm: 576,
xs: 575
// or you can use aliases
// giant: 1200,
// desktop: 992,
// tablet: 768,
// phone: 576,
// smaller: 575,
},
row: {
padding: 15 // default 15
},
col: {
padding: 11 // default 15
},
container: {
padding: 0, // default 15
maxWidth: {
// defaults below
xl: 1140,
lg: 960,
md: 720,
sm: 540,
xs: 540
// or you can use aliases
// giant: 1140,
// desktop: 960,
// tablet: 720,
// phone: 540,
// smaller: 540,
}
}
};
const styledTheme = {
mainColor: "purple"
};
class App extends Component {
render() {
return (
Hello Bootstrap Layout
Hello Bootstrap Layout
Hello Bootstrap Layout
</div>
</GridThemeProvider>
</ThemeProvider>
);
}
}
export default App;
from styled-bootstrap-grid.
@asadmehmoodsatti That doesn't look like valid JSX, there is a closing div tag with no opening tag and there are no Col components. Can you make sure this is all pasted in and correctly formatted and / or add this as a github repo or gist?
from styled-bootstrap-grid.
Hi ,
I followed the exact code from your git repo. Here is the screen short .
from styled-bootstrap-grid.
Hi,
Can you run the same git rep code on your end share screen short?
from styled-bootstrap-grid.
@asadmehmoodsatti that code doesn't include the required BaseCSS, are you importing that somewhere else?
from styled-bootstrap-grid.
Hi ,
no i m not using BaseCSS in my code.
from styled-bootstrap-grid.
Ok, please see this part of the README for instructions on using BaseCSS, it will fix your problem https://github.com/dragma/styled-bootstrap-grid#prerequisites
from styled-bootstrap-grid.
Hi,
Thanks. Issue resolved. I want to know 1 more thing. I import this on component level. Can't We use it globally?
Thanks for the help.
from styled-bootstrap-grid.
Hi,
I noticed 1 more thing.
I can see the issue between xl and lg. on my normal desktop if i increase the value of xl then my Column width get increase instead lg.
from styled-bootstrap-grid.
@asadmehmoodsatti you can add it to your root component if you want it to apply to your whole app.
For your second comment not sure what you mean, if you are having an issue please add a link to somewhere it can be reproduced
from styled-bootstrap-grid.
Hi ,
Yes. Now point 1 is clear .
Right now i can't host it somewhere. But if you think that is the only way then i see where i can host it.
But i share you my code with its result. So you can see what i m talking.
Hello Bootstrap Fluid LayoutAbove code produce below screen short for normal desktop scree. Basically i m confuse in xl and lg.
from styled-bootstrap-grid.
@asadmehmoodsatti I still cannot see formatted code there and won't be able to see if this is a bug unless there is code that can show an issue and have it reproduced
from styled-bootstrap-grid.
Related Issues (20)
- React 17.0.x compatibility
- Theme Provider has a delay generating css
- Support Styled Components V6 HOT 1
- Container Fluid max-width HOT 2
- Media min and max HOT 2
- GridThemeProvider needs children prop HOT 1
- npm install error v3.0.3 HOT 8
- Customize the amount of columns HOT 2
- Breakpoint sensitive paddings HOT 2
- Flex direction support
- Git submodule HOT 1
- Usage of !important for components styling causes error on AMP pages. HOT 10
- hidden{bp}Up media query misses 1px math HOT 5
- Col offset breaks other breakpoints
- Feature request: lessThan media type HOT 2
- Adding extra breakpoints trough gridThemeProvider HOT 1
- Changelog for breaking changes?
- Request: Number of columns prop for Row HOT 1
- Custom css appends a class over current css
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from styled-bootstrap-grid.