Skip to content

Commit

Permalink
fix: port flex-shrink to the new plugin structure
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Nov 5, 2022
1 parent 8635bcc commit 6423247
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/tailwind-parse/src/eval/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,13 @@ pub fn flex(
"flexGrow",
)
}
(Some(Flex::Shrink), val) => {
return simple_lookup(
&theme.flex_grow,
val.as_ref().map(|v| v.as_str()).unwrap_or("DEFAULT"),
"flexShrink",
)
}
(None, Some(val)) => return simple_lookup(&theme.flex, val.as_str(), "flex"),
};

Expand Down
1 change: 1 addition & 0 deletions crates/tailwind-parse/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ mod plugin {
Row,
Col,
Grow,
Shrink,
RowReverse,
ColReverse,
Wrap,
Expand Down

0 comments on commit 6423247

Please sign in to comment.