From 9c867c439c962990d7a4a73cea164cff2a812853 Mon Sep 17 00:00:00 2001 From: Paul Crowder Date: Thu, 23 May 2024 12:28:12 -0400 Subject: [PATCH] Make property definition table headers sticky (#287) --- CHANGELOG.md | 4 ++ projects/docs-tools/package.json | 2 +- .../property-definitions.component.html | 64 ++++++++++--------- .../property-definitions.component.scss | 10 ++- 4 files changed, 48 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b80098..f66926d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 10.5.0 (2024-05-23) + +- Make property definition table headers sticky. [#287](https://github.com/blackbaud/skyux-docs-tools/pull/287) + ## 10.4.0 (2024-05-23) - Update control panel radio groups to use heading text inputs. [#286](https://github.com/blackbaud/skyux-docs-tools/pull/286) diff --git a/projects/docs-tools/package.json b/projects/docs-tools/package.json index 96e0ac7..9da770b 100644 --- a/projects/docs-tools/package.json +++ b/projects/docs-tools/package.json @@ -1,6 +1,6 @@ { "name": "@skyux/docs-tools", - "version": "10.4.0", + "version": "10.5.0", "peerDependencies": { "@angular/common": "^17.3.10", "@angular/core": "^17.3.10", diff --git a/projects/docs-tools/src/modules/type-definitions/property-definitions.component.html b/projects/docs-tools/src/modules/type-definitions/property-definitions.component.html index 0545d23..f474429 100644 --- a/projects/docs-tools/src/modules/type-definitions/property-definitions.component.html +++ b/projects/docs-tools/src/modules/type-definitions/property-definitions.component.html @@ -1,35 +1,39 @@
- - - - - - - - + + + + + + + + + + + +
- {{ propertyType }} - - Description -
- - - -
+ {{ propertyType }} + + Description +
+ + + +
diff --git a/projects/docs-tools/src/modules/type-definitions/property-definitions.component.scss b/projects/docs-tools/src/modules/type-definitions/property-definitions.component.scss index 1647c7e..f896357 100644 --- a/projects/docs-tools/src/modules/type-definitions/property-definitions.component.scss +++ b/projects/docs-tools/src/modules/type-definitions/property-definitions.component.scss @@ -10,7 +10,15 @@ .sky-docs-property-definitions { width: 100%; max-width: 100%; - overflow: auto; + + th { + position: sticky; + top: var(--sky-viewport-top, 0); + } + + &-table-cell-description { + word-break: break-word; + } } .sky-docs-table-column-header-name {