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

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.
@@ -2509,12 +2509,8 @@ class UiButtonDirective {
2509
2509
  }
2510
2510
  });
2511
2511
  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
- }
2512
+ const size = this.$size();
2513
+ this.renderer.addClass(this.elementRef.nativeElement, size);
2518
2514
  });
2519
2515
  effect(() => {
2520
2516
  if (this.$isDisabled()) {