Skip to content

bug: Whitespace stripped from certain CSS selectors in ionic.bundle.css #25766

Closed

Description

@sean-perkins

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

The minified stylesheet ionic.bundle.css has whitespace stripped in :not selectors. This leads to existing selectors such as:

ion-modal .ion-page:not(ion-nav .ion-page) {
  position: relative;

  contain: layout style;

  height: 100%;
}

to become:

ion-modal .ion-page:not(ion-nav.ion-page) {
  position: relative;

  contain: layout style;

  height: 100%;
}

Expected Behavior

Whitespace should be preserved during the minification of the CSS bundle.

Steps to Reproduce

  1. Visit the minified CSS bundle: https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css
  2. Search for the invalid output: ion-modal .ion-page:not(ion-nav.ion-page)
  3. Observe: Selector is missing a space between ion-nav and .ion-page (as seen in the source code)

Code Reproduction URL

N/A

Ionic Info

N/A

Additional Information

No response

Activity

  1. self-assigned this
    on Aug 16, 2022
  2. added
    package: core
    type: bug
    on Aug 16, 2022
  3. added a commit that references this issue on Aug 17, 2022
    bafa759
  4. sean-perkins commented on Aug 17, 2022

    @sean-perkins
    ContributorAuthor

    This has been resolved in #25767 and will be available in the next patch release of Ionic.

  5. ionitron-bot commented on Sep 16, 2022

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  6. locked and limited conversation to collaborators on Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

package: coretype: bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions