mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(radio): match MD sizing (#16087)
This adjusts the sizing and proportions of our radio input to match the updated Material Design spec.
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
--height: #{$radio-md-icon-height};
|
||||
--border-width: #{$radio-md-icon-border-width};
|
||||
--border-style: #{$radio-md-icon-border-style};
|
||||
--inner-width: calc(var(--width) - var(--border-width) * 4);
|
||||
--inner-height: calc(var(--height) - var(--border-width) * 4);
|
||||
--inner-width: calc(var(--width) / 2);
|
||||
--inner-height: calc(var(--height) / 2);
|
||||
}
|
||||
|
||||
:host(.ion-color) .radio-inner {
|
||||
|
||||
@@ -14,10 +14,10 @@ $radio-md-background-color-focused: ion-color(primary, tint) !default;
|
||||
$radio-md-color-off: $text-color-step-600 !default;
|
||||
|
||||
/// @prop - Width of the radio icon
|
||||
$radio-md-icon-width: 16px !default;
|
||||
$radio-md-icon-width: 20px !default;
|
||||
|
||||
/// @prop - Height of the radio icon
|
||||
$radio-md-icon-height: 16px !default;
|
||||
$radio-md-icon-height: 20px !default;
|
||||
|
||||
/// @prop - Border width of the radio icon
|
||||
$radio-md-icon-border-width: 2px !default;
|
||||
|
||||
Reference in New Issue
Block a user