ionic-team / ionic-team/ionic-framework

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

Đang mở
#29,798 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
package: core type: bug
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.