Skip to content

Commit

Permalink
wip: removing minus margin and add hidden border to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Sep 21, 2023
1 parent 86b0c54 commit e848206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/ui/inputs/src/lib/button/button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class ButtonComponent {
@Output() buttonClick = new EventEmitter<void>()

get classList() {
return `${this.color} ${this.textColor} ${this.borderColor} ${this.extraClass}`
return `border border-inherit ${this.color} ${this.textColor} ${this.borderColor} ${this.extraClass}`
}

get color() {
Expand Down Expand Up @@ -61,7 +61,7 @@ export class ButtonComponent {
case 'primary':
return 'focus:ring-4 focus:ring-primary-lightest'
case 'outline':
return 'border border-gray-300 -m-[1px] hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker'
return 'border border-gray-300 hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker'
case 'light':
return 'focus:ring-4 focus:ring-gray-300'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<gn-ui-button
type="outline"
class="grow min-w-0"
extraClass="!p-[8px] !pl-[16px] flex flex-row w-auto max-w-full {{
extraClass="!p-[8px] !pl-[16px] flex flex-row w-full max-w-full {{
extraBtnClass
}}"
[title]="title"
Expand All @@ -21,7 +21,7 @@
#overlayOrigin="cdkOverlayOrigin"
(keydown)="handleTriggerKeydown($event)"
>
<div class="grow font-medium truncate mr-2">
<div class="grow font-medium truncate pr-1 text-left">
{{ getChoiceLabel() | translate }}
</div>
<mat-icon class="material-symbols-outlined shrink-0 opacity-40">
Expand Down

0 comments on commit e848206

Please sign in to comment.