-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bump version of spor-icon-elm in spor-elm #777
Conversation
|
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.
Nice! 👏 Tror vi kan kutte ned en del kode her før vi releaser det også! 😄
Critical -> | ||
feedbackIcon Icon.Error | ||
|
||
Major -> | ||
warningFill18x18 | ||
Major -> | ||
feedbackIcon Icon.Warning | ||
|
||
Minor -> | ||
warningFill18x18 | ||
Minor -> | ||
feedbackIcon Icon.Warning | ||
|
||
Info -> | ||
Svg.fromUnstyled <| Feedback.informationFill18X18 [] | ||
Info -> | ||
feedbackIcon Icon.Information |
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.
Her kan vi fjerne feedbackIcon fra alle casene og heller sette foran case-statementen. E.g.
feedbackIcon <| case deviationLevel of
...
( LocalTrain, Sm ) -> | ||
Transportation.trainFill18X18 [] | ||
trainIcon Icon.Size18 | ||
|
||
( LocalTrain, Md ) -> | ||
Transportation.trainFill24X24 [] | ||
trainIcon Icon.Size24 | ||
|
||
( LocalTrain, Lg ) -> | ||
Transportation.trainFill30X30 [] | ||
trainIcon Icon.Size30 |
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.
Hva med å lage en sizeToIconSize i let...in, så kan man i stedet si
( LocalTrain, size_ ) ->
trainIcon <| sizeToIconSize size_
( RegionTrain, size_ ) ->
trainIcon <| sizeToIconSize size_
osv..? 😄
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.
Hvis et case også har unikt ikon for sin variant kan egentlig ikonfunksjone bare ligge i den casen også!
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.
Background
Need to bump the version of
spor-icon-elm
intravel-costumize
, but this has a dependency onspor-elm
which uses the old version.Solution
Bumped to newer version. Changed the files that needed to be altered.