Skip to content

Remove Margin and Size modules, add size type in Style module. - #478

Merged
cknitt merged 1 commit into
masterfrom
style-size
May 1, 2019
Merged

cknitt merged 1 commit into
masterfrom
style-size

Conversation

@cknitt

@cknitt cknitt commented May 1, 2019

Copy link
Copy Markdown
Member

@MoOx Following our discussion on Discord and in #450, here is an attempt at simplifying things.

@cknitt
cknitt requested review from MoOx and sgny May 1, 2019 19:25
MoOx
MoOx previously approved these changes May 1, 2019
type margin = size;

[@bs.inline "auto"]
let auto: margin;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat trick

Comment thread website/src/components/HeaderLarge.re Outdated
{item.componentFunc(
~iconColor=Consts.Colors.light,
~iconSize=22.->Svg.Size.pt,
~iconSize=22.->Svg.pt,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure about this? I don't see Svg module being updated.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aargh, search and replace error.

@cknitt
cknitt merged commit 400b215 into master May 1, 2019
@MoOx
MoOx deleted the style-size branch May 1, 2019 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants