Skip to content

fix(ui): replace mixed-support flex alignment values with flex-prefixed equivalents - #3357

Merged
hellofanny merged 1 commit into
devfrom
fix/autoprefixer-warnings
Jun 1, 2026
Merged

hellofanny merged 1 commit into
devfrom
fix/autoprefixer-warnings

Conversation

@hellofanny

@hellofanny hellofanny commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replace justify-content: end → justify-content: flex-end in LocalizationSelector/styles.scss
  • Replace align-items: start → align-items: flex-start and justify-content: end → justify-content: flex-end in OrganizationDrawer/section.module.scss
  • Replace justify-content: start → justify-content: flex-start in Toast/styles.scss

These changes resolve autoprefixer warnings about mixed browser support when using the bare start/end CSS keywords as flex alignment values. The flex-start/flex-end variants are universally supported in flex contexts.

Test plan

  • Verify the LocalizationSelector renders correctly (actions row alignment unchanged)
  • Verify the OrganizationDrawer header renders correctly (row layout unchanged)
  • Verify the Toast renders correctly (content alignment unchanged)

Made with Cursor

Summary by CodeRabbit

  • Style
    • Standardized flex container alignment properties across multiple UI components including account drawer headers, toast notifications, and localization selector menus to ensure consistent visual behavior and reliable layout rendering.

Review Change Stack

…ed equivalents

Replace `start`/`end` with `flex-start`/`flex-end` in flex contexts to resolve
autoprefixer warnings about mixed browser support.

Co-authored-by: Cursor <[email protected]>
@hellofanny
hellofanny requested a review from a team as a code owner May 29, 2026 16:32
@hellofanny
hellofanny requested review from eduardoformiga and ommeirelles and removed request for a team May 29, 2026 16:32
@coderabbitai

coderabbitai Bot commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 23c5baac-8bbf-4f62-a403-6148538626aa

📥 Commits

Reviewing files that changed from the base of the PR and between b12fa64 and 0ab1a8a.

📒 Files selected for processing (3)
  • packages/core/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss
  • packages/ui/src/components/molecules/Toast/styles.scss
  • packages/ui/src/components/organisms/LocalizationSelector/styles.scss

Walkthrough

This PR standardizes CSS flexbox alignment keywords across three component stylesheets. justify-content: start becomes flex-start, end becomes flex-end, and align-items: start becomes flex-start. These explicit keywords replace CSS shorthand values for consistent flex alignment behavior.

Changes

Flexbox Alignment Keyword Normalization

Layer / File(s) Summary
Normalize flex alignment keywords across components
packages/core/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss, packages/ui/src/components/molecules/Toast/styles.scss, packages/ui/src/components/organisms/LocalizationSelector/styles.scss
OrganizationDrawer header, Toast container, and LocalizationSelector actions updated to use explicit flexbox keywords (flex-start, flex-end) instead of shorthand values (start, end) for consistent alignment behavior.

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • ommeirelles
  • eduardoformiga
  • lemagnetic

Poem

Flex grows straight, alignment clear,
Start and end, now explicit here,
Three containers realigned with care,
Consistency flows, precision everywhere ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the primary change: replacing CSS flex alignment values (start/end) with their flex-prefixed equivalents (flex-start/flex-end) across three files to resolve Autoprefixer warnings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/autoprefixer-warnings

Comment @coderabbitai help to get the list of available commands and usage tips.

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@sonar-workflows

Copy link
Copy Markdown

@hellofanny hellofanny self-assigned this Jun 1, 2026

@lemagnetic lemagnetic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice

@hellofanny
hellofanny merged commit 3d5a42b into dev Jun 1, 2026
10 checks passed
@hellofanny
hellofanny deleted the fix/autoprefixer-warnings branch June 1, 2026 19:15
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