ionic-team / ionic-team/ionic-framework

bug: css class .plt-desktop is used in native android

未关闭
#29,798 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
package: core type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

### 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

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。