-
-
Notifications
You must be signed in to change notification settings - Fork 3
fix: align iOS 27 glass button and FAB pressed appearance #141
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,9 @@ | |
| ion-fab.ios:not(.ios26-disabled) { | ||
| ion-fab-button { | ||
| &.ion-activated { | ||
| &::part(native) { | ||
| @include api.glass-background-button-activated-dark($include-background: false); | ||
| } | ||
|
Comment on lines
+7
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 ダークモードで押下中のFABが拡大されない ダークテーマでは、このmixinが後から Learn more
Example: 通常サイズのFABをダークモードで押すと、通常テーマが設定した Recommended fix: ダーク用mixinからtransformを分離するか、FAB向け呼び出しではtransformを生成しないオプションを追加してください。あるいは、ダーク側でsmall/default/largeそれぞれのscaleを保持したtransformを再指定してください。 Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| --color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 1); | ||
|
|
||
| &.ion-color { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 システム設定のダークモードで押下ボタンがライト配色になる
通常テーマの押下ルールはダーク側より詳細度が高く、新しい背景色、枠線、影を上書きさせません。system版とalways版では、押下ボタンがライト用ガラス配色になります。
Learn more
通常テーマのセレクターには
.iosがあり、クラス相当の詳細度がダーク側より1つ高くなります。そのため、後から読み込まれる ダーク用mixin のbackground-color、border、box-shadowでも、この追加ルールを上書きできません。.ion-palette-darkで囲むclass版は親クラスで詳細度が増えますが、system版とalways版にはその親がありません。Example:
ionic-theme-ios26.scssとionic-theme-ios26-dark-system.scssを読み込み、OSをダーク設定にしてdefault fillのボタンを押します。ダーク側はselected色の56%背景を指定しますが、通常側のglass背景96%と通常側の輪郭・影が勝ちます。Recommended fix: system版とalways版でもダーク側のセレクターが通常側以上の詳細度になるよう、
theme-dark-buttonの対象に同じ.ios条件を追加してください。FABのように同一要素へ競合するプロパティについては、生成CSSの詳細度と読み込み順の両方を確認してください。Was this helpful? React with 👍 or 👎 to provide feedback.