@fluid-topics/ft-reader-title 1.1.70 → 1.1.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registr
4
4
  import { FtReaderTitleProperties } from "./ft-reader-title.properties";
5
5
  export declare class FtReaderTitle extends FtReaderComponent implements FtReaderTitleProperties {
6
6
  static elementDefinitions: ElementDefinitionsMap;
7
+ static styles: import("lit").CSSResult;
7
8
  private mapTitle?;
8
9
  render(): import("lit").TemplateResult<1> | typeof nothing;
9
10
  protected contentAvailableCallback(props: PropertyValues): void;
@@ -4,14 +4,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, nothing } from "lit";
7
+ import { css, html, nothing } from "lit";
8
8
  import { redux } from "@fluid-topics/ft-wc-utils";
9
9
  import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
10
10
  import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  class FtReaderTitle extends FtReaderComponent {
12
12
  render() {
13
13
  return this.mapTitle ? html `
14
- <ft-typography variant="title" part="text">${this.mapTitle}</ft-typography>
14
+ <ft-typography variant="title" part="title" element="h1">${this.mapTitle}</ft-typography>
15
15
  ` : nothing;
16
16
  }
17
17
  contentAvailableCallback(props) {
@@ -24,6 +24,12 @@ class FtReaderTitle extends FtReaderComponent {
24
24
  FtReaderTitle.elementDefinitions = {
25
25
  "ft-typography": FtTypography,
26
26
  };
27
+ //language=css
28
+ FtReaderTitle.styles = css `
29
+ [part="title"]::part(text) {
30
+ margin: unset;
31
+ }
32
+ `;
27
33
  __decorate([
28
34
  redux({ selector: (s) => { var _a; return (_a = s.map) === null || _a === void 0 ? void 0 : _a.title; } })
29
35
  ], FtReaderTitle.prototype, "mapTitle", void 0);