Skip to content

Commit

Permalink
style: add initial values for flex align props
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloamed committed Sep 19, 2024
1 parent c8e9338 commit 6985167
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vaev-style/styles.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct JustifyContentProp {

static constexpr Str name() { return "justify-content"; }

static constexpr Align initial() { return {}; }
static constexpr Align initial() { return Align(Align::Keywords::FLEX_START); }

void apply(Computed &c) const {
c.aligns.justifyContent = value;
Expand Down Expand Up @@ -80,7 +80,7 @@ struct AlignSelfProp {

static constexpr Str name() { return "align-self"; }

static constexpr Align initial() { return {}; }
static constexpr Align initial() { return Align(Align::Keywords::FLEX_START); }

void apply(Computed &c) const {
c.aligns.alignSelf = value;
Expand Down Expand Up @@ -116,7 +116,7 @@ struct AlignItemsProp {

static constexpr Str name() { return "align-items"; }

static constexpr Align initial() { return {}; }
static constexpr Align initial() { return Align(Align::Keywords::FLEX_START); }

void apply(Computed &c) const {
c.aligns.alignItems = value;
Expand Down

0 comments on commit 6985167

Please sign in to comment.