Align hint left

This commit is contained in:
Tanya Fomina 2024-05-04 21:20:55 +03:00
parent 26053add7b
commit 9b30fac6ab
3 changed files with 6 additions and 1 deletions

View file

@ -10,6 +10,7 @@ const className = bem('ce-hint-content');
*/ */
export const css = { export const css = {
root: className(), root: className(),
alignedLeft: className(null, 'align-left'),
title: className('title'), title: className('title'),
description: className('description'), description: className('description'),
}; };

View file

@ -1,4 +1,8 @@
.ce-hint-content { .ce-hint-content {
&--align-left {
text-align: left;
}
&__description { &__description {
opacity: 0.6; opacity: 0.6;
margin-top: 3px; margin-top: 3px;

View file

@ -24,7 +24,7 @@ export class Hint {
*/ */
constructor(params: HintParams) { constructor(params: HintParams) {
this.nodes = { this.nodes = {
root: Dom.make('div', css.root), root: Dom.make('div', [css.root, css.alignedLeft]),
title: Dom.make('div', css.title, { textContent: params.title }), title: Dom.make('div', css.title, { textContent: params.title }),
}; };