Skip to content

Commit

Permalink
Merge pull request #164 from takenet/feature/448400_rebranding_key_va…
Browse files Browse the repository at this point in the history
…lue_component

Rebranding changes in KeyValue component
  • Loading branch information
rafael-santiago-take authored May 25, 2023
2 parents e00af67 + 71dbae7 commit cadc8a8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
4 changes: 4 additions & 0 deletions src/components/blipInputDpr/blipInputDpr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
input::-ms-reveal {
display: none;
}

.icon-check {
color: $color-success;
}
}

// Needed to force padding despite icon class
Expand Down
14 changes: 9 additions & 5 deletions src/components/blipInputDpr/blipInputDprView.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@
autocomplete="{{$ctrl.inputAutocomplete}}"
placeholder="{{$ctrl.placeholder}}"
id="{{$ctrl.fieldId}}" />
<i ng-if="!($ctrl.unmaskablePassword && $ctrl.type === 'password')"
class="dib fr mh2 icon icon-material bp-c-true-dark bp-input-check"
ng-class="{ 'invisible': $ctrl.disabled || focused || !$ctrl.parentForm[$ctrl.fieldName].$viewValue || !$ctrl.parentForm[$ctrl.fieldName].$valid }">
&#xE5CA;
</i>

<bds-icon
ng-if="!($ctrl.unmaskablePassword && $ctrl.type === 'password')"
name="checkball"
theme="solid"
class="dib fr mh2 icon-check"
ng-class="{ 'invisible': $ctrl.disabled || focused || !$ctrl.parentForm[$ctrl.fieldName].$viewValue || !$ctrl.parentForm[$ctrl.fieldName].$valid }"
>
</bds-icon>
<img
icon-src="EyePassword"
class="mh2 bp-input-check pb2"
Expand Down
11 changes: 11 additions & 0 deletions src/components/keyValue/KeyValue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,15 @@
left: -12px;
}
}

.remove-item {
&:hover{
color: $color-content-default;
background: transparent;
}
}

.input-text {
width: 43%;
}
}
12 changes: 9 additions & 3 deletions src/components/keyValue/KeyValueItemView.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@
parent-form="$ctrl.formReference"
field-name="key"
type="text"
class="w-45"
class="input-text"
required></blip-input-dpr>
<blip-input-dpr
ng-model="$ctrl.value"
label="{{ $ctrl.valuePlaceholder || 'Value' }}"
parent-form="$ctrl.formReference"
field-name="value"
type="text"
class="w-45"
class="input-text"
required></blip-input-dpr>
<i ng-click="$ctrl.delete()" class="self-center icon-close lh-solid"></i>
<bds-button-icon
variant="secondary"
icon="trash"
size="short"
class="fr mt3 remove-item"
ng-click="$ctrl.delete()">
</bds-button-icon>
</div>
2 changes: 1 addition & 1 deletion src/components/keyValue/KeyValueView.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ul>
</form>
<!-- Add item form -->
<div class="ph4 flex justify-center">
<div class="flex justify-center">
<button type="button" ng-click="$ctrl.addNewItem()"
class="bp-btn bp-btn--bot bp-btn--dashed flex justify-center items-center h3-1 w-100 b"
translate>
Expand Down

0 comments on commit cadc8a8

Please sign in to comment.