-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(formfield): add example of customizing spacing with theming toke…
…ns (#1329)
- Loading branch information
1 parent
1793088
commit 6b25bac
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...tion/examples/formfield/formfield-spacing-adjuster/formfield-spacing-adjuster-example.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.remove-formfield-spacing { | ||
--formfield-bottom-padding: 0; | ||
--formfield-outline-bottom-padding: 0; | ||
--formfield-mobile-bottom-padding: 0; | ||
} |
8 changes: 8 additions & 0 deletions
8
...ion/examples/formfield/formfield-spacing-adjuster/formfield-spacing-adjuster-example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<form class="remove-formfield-spacing"> | ||
<nx-formfield label="Label"> | ||
<input nxInput /> | ||
</nx-formfield> | ||
<nx-formfield label="Label"> | ||
<input nxInput /> | ||
</nx-formfield> | ||
</form> |
16 changes: 16 additions & 0 deletions
16
...ation/examples/formfield/formfield-spacing-adjuster/formfield-spacing-adjuster-example.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
import { NxFormfieldComponent } from '@aposin/ng-aquila/formfield'; | ||
import { NxInputDirective } from '@aposin/ng-aquila/input'; | ||
|
||
/** | ||
* @title Adjusting Form Field Spacing with CSS Variables Example | ||
*/ | ||
@Component({ | ||
selector: 'formfield-spacing-adjuster-example', | ||
standalone: true, | ||
imports: [NxFormfieldComponent, NxInputDirective], | ||
templateUrl: './formfield-spacing-adjuster-example.html', | ||
styleUrl: './formfield-spacing-adjuster-example.css', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class FormfieldSpacingAdjusterExampleComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters