mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
feat(progress-bar): add styling for the ionic theme (#30185)
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 current behavior? ion-progress-bar does not currently have any custom styling for the ionic theme. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> According to the design, the following styling changes were made: - Added a new shape prop which controls the shape of the progress bar - Changed the color of the unfilled part of the progress bar and the bar height to design token values - Adding a new testing page and screenshot tests ## 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. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
This commit is contained in:
@ -1593,14 +1593,14 @@ Shorthand for ionPickerDidDismiss.
|
||||
|
||||
@ProxyCmp({
|
||||
defineCustomElementFn: defineIonProgressBar,
|
||||
inputs: ['buffer', 'color', 'mode', 'reversed', 'theme', 'type', 'value']
|
||||
inputs: ['buffer', 'color', 'mode', 'reversed', 'shape', 'theme', 'type', 'value']
|
||||
})
|
||||
@Component({
|
||||
selector: 'ion-progress-bar',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: '<ng-content></ng-content>',
|
||||
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
||||
inputs: ['buffer', 'color', 'mode', 'reversed', 'theme', 'type', 'value'],
|
||||
inputs: ['buffer', 'color', 'mode', 'reversed', 'shape', 'theme', 'type', 'value'],
|
||||
standalone: true
|
||||
})
|
||||
export class IonProgressBar {
|
||||
|
Reference in New Issue
Block a user