-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat(Timeline): Migrate to styled-components #1468
Conversation
df42e75
to
b8e82a4
Compare
packages/react-component-library/src/components/Timeline/TimelineMonths.tsx
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineDays.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineHours.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineDays.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineDay.tsx
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineHour.tsx
Show resolved
Hide resolved
cc36220
to
ce26177
Compare
packages/react-component-library/src/components/Timeline/TimelineRows.tsx
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineRows.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineRows.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineDays.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineHours.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineDays.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/TimelineHours.tsx
Outdated
Show resolved
Hide resolved
5722092
to
408e279
Compare
packages/react-component-library/src/components/Timeline/TimelineWeeks.tsx
Outdated
Show resolved
Hide resolved
1a13746
to
d9e7019
Compare
d9e7019
to
d412895
Compare
packages/react-component-library/src/components/Timeline/TimelineDays.tsx
Show resolved
Hide resolved
db85f19
to
a19c508
Compare
a19c508
to
d412895
Compare
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.
Looks good 👍
Some feedback around naming convention which looks like it was thought about but it feels useful to know that child elements of a styled
component are styled
components themselves.
packages/react-component-library/src/components/Timeline/Timeline.tsx
Outdated
Show resolved
Hide resolved
packages/react-component-library/src/components/Timeline/Timeline.tsx
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #1468 +/- ##
==========================================
+ Coverage 98.37% 98.40% +0.02%
==========================================
Files 167 167
Lines 1661 1692 +31
Branches 404 413 +9
==========================================
+ Hits 1634 1665 +31
Misses 27 27
|
87a0c1c
to
4924956
Compare
My only general question/comment is about the overriding of inner styles not covered by render props (e.g. It would be good to have a story for that (not necessarily in this PR if there are further PRs coming). |
We have literally just been discussing this - we're not quite sure yet. The idea of having a I'm trying to get my head around how the example you linked would work for you the consumer. |
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.
Looks good 👍
Maybe another pair of 👀 from @jpveooys ?
packages/react-component-library/src/components/Timeline/Timeline.stories.tsx
Show resolved
Hide resolved
…ePatterns Also rename the babel config file (v7 format).
Prevents breaking existing downstream CSS overrides.
85e35e2
to
273f1ca
Compare
Code Climate has analyzed commit 273f1ca and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Related issue
Closes #951
Overview
Initial migration away from SASS to styled-components.
Reason
Work carried out
Developer notes
Design tokens package to be supplemented with helpers in proceeding PR:
https://www.erikverweij.dev/blog/manage-design-tokens-with-typescript-and-styled-components
https://github.com/everweij/design-tokens-ts-styled-components