@ibragim-dev-org/ui-forge-library 1.1.6 → 1.1.8

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,6 +2510,9 @@ class UiButtonDirective {
2509
2510
  }
2510
2511
  });
2511
2512
  effect(() => {
2513
+ buttonSizes.forEach((size) => {
2514
+ this.renderer.removeClass(this.elementRef.nativeElement, size);
2515
+ });
2512
2516
  const size = this.$size();
2513
2517
  this.renderer.addClass(this.elementRef.nativeElement, size);
2514
2518
  });