Skip to content

Commit

Permalink
Merge branch 'master' into style/professional-theme-border-colour
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke authored Nov 6, 2024
2 parents 178d670 + 0aa5474 commit a94528d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
>
<div class="text-bubble" [attr.data-position]="params.speakerPosition">
@if (_row.value) {
<p class="text">
{{ _row.value }}
</p>
<plh-tmpl-text
[row]="{ _nested_name: '', name: '', type: 'text', value: value() }"
></plh-tmpl-text>
}
@for (childRow of _row.rows | filterDisplayComponent; track trackByRow($index, childRow)) {
<plh-template-component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ $imageSize: 64px;

.text-bubble {
padding: var(--large-padding);
p {
line-height: inherit;
margin: 0;
font-size: var(--font-size-text-large);
color: var(--ion-color-primary);

// Override default margins of child text component:
// handle with padding on this parent element instead
plh-tmpl-text {
--margin-text: 0;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@if (this._row.value) {
<div
class="large standard normal margin-t-large"
class="large standard normal"
[class]="params.style"
[ngStyle]="!hasTextValue ? { display: 'none' } : { display: 'block' }"
[innerHTML]="
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:host {
// Default value for top and bottom margins. Can be overridden in parent component
// styles if calling the text component as a child of another component
--margin-text: 0.75em;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface ITextParams {
@Component({
selector: "plh-tmpl-text",
templateUrl: "./text.component.html",
styleUrls: ["../tmpl-components-common.scss"],
styleUrls: ["../tmpl-components-common.scss", "./text.component.scss"],
})
export class TmplTextComponent extends TemplateBaseComponent implements OnInit {
params: Partial<ITextParams> = {};
Expand Down
2 changes: 1 addition & 1 deletion src/theme/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ h3 {
}

p {
margin: 0.75em 0;
margin: var(--margin-text, 0.75em) 0;
}

.standard {
Expand Down

0 comments on commit a94528d

Please sign in to comment.