ionic-team / ionic-team/ionic-framework
bug: css class .plt-desktop is used in native android
- Dominant language
- TypeScript
- Stars
- 52.7k
- Forks
- 13.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 51
Description
### Prerequisites
- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
### Ionic Framework Version
v8.x
### Current Behavior
.plt-desktop class is set to the html element in native android
### Expected Behavior
Previously plt-desktop was only used in pwa mode and not used in the native app.
### Steps to Reproduce
add the following to your css code
css
```
html.plt-desktop {
desplay: none;
}
```
Run in;
1. native ios (selector is not used)
2. pwa (selector is used)
3. native android (selector _is_ used)
### Code Reproduction URL
https://github.com/lil5/bug-1
### Ionic Info
Ionic:
Ionic CLI : 7.2.0 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 8.2.7
Capacitor:
Capacitor CLI : 6.1.2
@capacitor/android : 6.1.2
@capacitor/core : 6.1.2
@capacitor/ios : 6.1.2
Utility:
cordova-res : not installed globally
native-run (update available: 2.0.1) : 1.7.3
System:
NodeJS : v22.5.1 (/opt/homebrew/Cellar/node/22.5.1/bin/node)
npm : 10.8.2
OS : macOS Unknown
### Additional Information
It would be nice if this is added as a breaking change in the changelog for ionic 8
Contributor guide
Research direction
No source file or test is named in the report. Start by tracing Ionic Framework's platform-class handling and use the linked reproduction to compare native Android, native iOS, and PWA. Done means .plt-desktop is absent from native Android and native iOS while remaining available in PWA mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, typescript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100