Skip to content

Commit

Permalink
Merge branch 'master' into feat/set-data-action-operators
Browse files Browse the repository at this point in the history
  • Loading branch information
esmeetewinkel authored Dec 18, 2024
2 parents 069eded + 40946f7 commit 2c7f0cc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
class="box-wrapper"
[attr.data-toggled]="toggle"
(click)="triggerCopyContent($event, _row); triggerActions('click')"
[attr.data-language-direction]="templateTranslateService.languageDirection()"
>
<div class="text">{{ _row?.value }}</div>
<div class="copy-button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "src/app/shared/utils";
import { TemplateBaseComponent } from "../base";
import { FlowTypes, ITemplateRowProps } from "../../models";
import { TemplateTranslateService } from "../../services/template-translate.service";

@Component({
selector: "plh-select-text",
Expand All @@ -31,6 +32,10 @@ export class SelectTextComponent
//output: 0
public subscribe: Subscription;

constructor(public templateTranslateService: TemplateTranslateService) {
super();
}

ngOnInit() {
this.getParams();
}
Expand Down
18 changes: 18 additions & 0 deletions src/theme/themes/plh_kids_kw/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ body[data-theme="plh_kids_kw"] {
border: none;
width: 100%;
padding: 0;
border-radius: 12px !important;
.text {
border: 1px solid var(--color-accent-yellow-80);
border-top-left-radius: 12px;
Expand Down Expand Up @@ -520,6 +521,23 @@ body[data-theme="plh_kids_kw"] {
.image-based-icon {
max-width: 32px !important;
}
&[data-toggled="true"] {
background-color: var(--color-accent-yellow-95) !important;
}
}
.box-wrapper[data-language-direction~="rtl"] {
.text {
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.copy-button {
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
}
}

Expand Down

0 comments on commit 2c7f0cc

Please sign in to comment.