Skip to content

Commit

Permalink
docs: (Core) Select custom item styles (#4603)
Browse files Browse the repository at this point in the history
* adding styles for custom examples

* addressng kevins comment

* tryign to fix multilayout build issues by for,
  • Loading branch information
sKudum committed Feb 10, 2021
1 parent 52e8c6f commit 4a80974
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@
padding-right: 0.5rem;
}
}

[dir="rtl"] span {
padding-right: 0.5rem;
}

[dir="rtl"] fd-icon {
padding-left: 0.5rem;

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component } from '@angular/core';
import { Component, ViewEncapsulation } from '@angular/core';

@Component({
selector: 'fd-select-custom-trigger',
templateUrl: './select-custom-trigger.component.html',
styleUrls: ['./select-custom-trigger.component.scss']
styleUrls: ['./select-custom-trigger.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class SelectCustomTriggerComponent {
options: string[] = ['Apple', 'Pineapple', 'Tomato', 'Strawberry'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3>Binary Checkbox in Reactive/Model Driven Form</h3>
<div style="padding-left: 2rem;">form value: {{ customForm.getRawValue() | json }}</div>

<h3>Disabled Checkbox</h3>
<fdp-form-group multiLayout="true">
<fdp-form-group>
<fdp-form-field #disabled id="disabled" label="Red" rank="1">
<fdp-checkbox name="disabled-cb" [isBinary]="true" title="Red"
(checkedChange)="checkedChangeFunction($event)" (indeterminateChange)="indeterminateChangeFunction($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { By } from '@angular/platform-browser';
@Component({
selector: 'fdp-cbg-reactive-test',
template: `
<fdp-form-group [multiLayout]="true" [formGroup]="form1" [object]="formData">
<fdp-form-group [formGroup]="form1" [object]="formData">
<fdp-form-field #fl1 [id]="'phones'" [label]="'Phones interested in:'" zone="zLeft" rank="1">
<fdp-checkbox-group
[list]="phoneslist"
Expand Down Expand Up @@ -271,7 +271,7 @@ describe('CheckboxGroup component Reactive Form Test', () => {
@Component({
selector: 'fdp-cbg-template-driven-test',
template: `
<fdp-form-group [multiLayout]="true">
<fdp-form-group>
<fdp-form-field [id]="'phonest'" [label]="'Phones interested in:'" zone="zLeft" rank="1">
<fdp-checkbox-group [list]="phoneslist" [name]="'brands'" [(ngModel)]="phones"></fdp-checkbox-group>
</fdp-form-field>
Expand Down Expand Up @@ -545,7 +545,7 @@ describe('Checkbox Group Component Template driven Form Tests', () => {
@Component({
selector: 'fdp-cbg-reactive-formgroup-data',
template: `
<fdp-form-group [multiLayout]="true" [formGroup]="form2">
<fdp-form-group [formGroup]="form2">
<fdp-form-field #fl1 [id]="'phones'" [label]="'Phones interested in:'" zone="zLeft" rank="1">
<fdp-checkbox-group [list]="phoneslist" [name]="'brands'" formControlName="phones"></fdp-checkbox-group>
</fdp-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('InputGroup component', () => {
/** Usage with form */
@Component({
template: `
<fdp-form-group #fg [multiLayout]="true" [formGroup]="form" [object]="initialFormModel">
<fdp-form-group #fg [formGroup]="form" [object]="initialFormModel">
<fdp-form-field
#ff
id="qty"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SelectItem } from '../../../domain/data-model';
@Component({
selector: 'fdp-test-reative-fdp-form-group',
template: `
<fdp-form-group [multiLayout]="true" [formGroup]="form1" [object]="formData">
<fdp-form-group [formGroup]="form1" [object]="formData">
<fdp-form-field #fl1 [id]="'pizzaBrand'" [label]="'Select Pizza Store:'" zone="zLeft" rank="1">
<fdp-radio-group
[list]="pizzaBrands"
Expand Down Expand Up @@ -248,7 +248,7 @@ describe('Radio Group Test with Reactive fdp-form-group', () => {
@Component({
selector: 'fdp-test-template-driven-fdp-form-group',
template: `
<fdp-form-group [multiLayout]="true">
<fdp-form-group>
<fdp-form-field [id]="'pizzaBrandt'" [label]="'Select Pizza Store:'" zone="zLeft" rank="1">
<fdp-radio-group
[list]="pizzaBrands"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ describe('NumberStepInputComponent main functionality', () => {
@Component({
template: `
<form [formGroup]="form" (ngSubmit)="onSubmit($event)">
<fdp-form-group #fg1 [multiLayout]="true" [formGroup]="form" [object]="initialFormModel">
<fdp-form-group #fg1 [formGroup]="form" [object]="initialFormModel">
<fdp-form-field
#ff
id="qty"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import '@angular/localize/init';
selector: 'fdp-test-textarea',
template: `
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<fdp-form-group #fg1 [multiLayout]="true" [formGroup]="form">
<fdp-form-group #fg1 [formGroup]="form">
<fdp-form-field
#basicTextareaField
[id]="'basicTextarea'"
Expand Down

0 comments on commit 4a80974

Please sign in to comment.