@ibragim-dev-org/ui-forge-library 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2469,6 +2469,7 @@ const buttonColors = [
2469
2469
  'info',
2470
2470
  'danger',
2471
2471
  ];
2472
+ const buttonSizes = ['large', 'medium', 'small'];
2472
2473
  class UiButtonDirective {
2473
2474
  elementRef;
2474
2475
  renderer;
@@ -2509,12 +2510,11 @@ class UiButtonDirective {
2509
2510
  }
2510
2511
  });
2511
2512
  effect(() => {
2512
- if (this.$size() === 'small') {
2513
- this.renderer.addClass(this.elementRef.nativeElement, 'small');
2514
- }
2515
- else {
2516
- this.renderer.removeClass(this.elementRef.nativeElement, 'small');
2517
- }
2513
+ buttonSizes.forEach((size) => {
2514
+ this.renderer.removeClass(this.elementRef.nativeElement, size);
2515
+ });
2516
+ const size = this.$size();
2517
+ this.renderer.addClass(this.elementRef.nativeElement, size);
2518
2518
  });
2519
2519
  effect(() => {
2520
2520
  if (this.$isDisabled()) {