mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(css): improve tokens support on global css ionic files (#30364)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Add tokens usage on global css files for Ionic theme. - Removed global background an text variables and fixed variables names used on `body`. This resulted in some changes on test pages colors, hence the snapshots differences. ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> --------- Co-authored-by: ionitron <hi@ionicframework.com>
This commit is contained in:
@ -9,13 +9,13 @@
|
||||
|
||||
gap: globals.$ion-space-100;
|
||||
|
||||
transition: color 0.2s ease-in-out;
|
||||
transition: color globals.$ion-transition-time-200 ease-in-out;
|
||||
|
||||
font-weight: globals.$ion-font-weight-regular;
|
||||
|
||||
text-decoration-color: inherit;
|
||||
|
||||
text-underline-offset: 2px;
|
||||
text-underline-offset: globals.$ion-scale-050;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
@ -51,8 +51,7 @@
|
||||
|
||||
&:focus,
|
||||
&.ion-focused {
|
||||
outline: 2px solid globals.$ion-text-link-default;
|
||||
outline-offset: 2px;
|
||||
@include globals.focused-state(null, null, globals.$ion-text-link-default);
|
||||
|
||||
text-decoration: underline;
|
||||
}
|
||||
@ -97,10 +96,7 @@ a.ionic-link,
|
||||
|
||||
&:focus,
|
||||
&.ion-focused {
|
||||
outline: 2px solid globals.$ion-text-link-default;
|
||||
outline-offset: 2px;
|
||||
|
||||
color: currentColor;
|
||||
@include globals.focused-state(null, null, globals.$ion-text-link-default);
|
||||
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user