Skip to content
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

fix(divider): remove safe areas from horizontal padding #30311

Merged
merged 4 commits into from
Mar 31, 2025
Merged

Conversation

OS-martacarlos
Copy link

@OS-martacarlos OS-martacarlos commented Mar 26, 2025

Issue number: internal


What is the current behavior?

The horizontal padding of the divider component was being calculated taking into account safe areas.
However, since this component can be placed inside other components that already take these areas into account, this is not necessary.

What is the new behavior?

  • Removes the safe areas

Does this introduce a breaking change?

  • Yes
  • No

Other information

Confirmed with design: the new divider component’s main use case is to be used inside ion-content (or one of it’s children). As such, the responsibility of taking into account safe areas will fall on the developer (as it’s already stated in the documentation). This means, the divider component itself will not account for the safe areas for its' specific padding.

The default spacing also changed from xxsmall to medium

@OS-martacarlos OS-martacarlos added the package: core @ionic/core package label Mar 26, 2025
@OS-martacarlos OS-martacarlos self-assigned this Mar 26, 2025
Copy link

vercel bot commented Mar 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 31, 2025 8:30am

@OS-martacarlos OS-martacarlos marked this pull request as ready for review March 27, 2025 10:29
@OS-martacarlos OS-martacarlos requested a review from a team as a code owner March 27, 2025 10:29
@OS-martacarlos OS-martacarlos merged commit 69340bf into next Mar 31, 2025
58 checks passed
@OS-martacarlos OS-martacarlos deleted the ROU-11778 branch March 31, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants