itemWidth and offset in relative units
See original GitHub issueIs your feature request related to a problem? Please describe.
I would like to use responsive units (em
and rem
) for both offset
and itemWidth
but am unable to due to the restraint of the number prop type and the assignment to px
.
Describe the solution you’d like
It’d be nice if these props were refactored to accept either a number or string - if string, don’t append the px
, if number, do.
Describe alternatives you’ve considered N/A
Additional context N/A
IssueHunt Summary
Backers (Total: $0.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top Results From Across the Web
brainhubeu/ react-carousel: itemWidth and offset in relative units. #191
itemWidth and offset in relative units #191 ... I would like to use responsive units ( em and rem ) for both offset...
Read more >Controlling ratios of flex items along the main axis - CSS
In this guide we will be exploring the three properties that are applied to flex items, which enable us to control the size...
Read more >Offset (NASA WorldWind)
Defines the relationship of an image, label or other screen-space item relative to another screen-space item. An offset contains an X coordinate, ...
Read more >CSS Values and Units Module Level 3 - W3C
This CSS3 module describes the various values and units that CSS ... Font-relative lengths: the ' em ', ' ex ', ' ch...
Read more >Offset (NASA World Wind)
PIXELS , which indicates pixel units relative to the lower left corner of the ... units are fractions of the screen-space item's width...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@piotr-s-brainhub My assumption is theoretical. I tested it on the deployed gh-pages with a scenario similar to ours and it seemed to do the job!
@katiawheeler
Can I ask you to fill in this form https://docs.google.com/forms/d/1tfRs1Io49tJBwz-06aDnz8hrJ3WySJTi45y4k6hHGaQ ?