-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Fixup definition-table + copy-button margin (#10512)
- Loading branch information
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
ui/packages/consul-ui/app/components/definition-table/README.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
class: css | ||
--- | ||
# definition-table | ||
|
||
Simple CSS component to render a `dl` similar to a table with column headers. | ||
Contents of the `dd` are currently inline-block'ed for CopyButton reasons. | ||
|
||
```hbs preview-template | ||
<div class="definition-table"> | ||
<dl> | ||
<dt>Title 1</dt> | ||
<dd>Value</dd> | ||
<dt>Title 2</dt> | ||
<dd><CopyButton @name="Title 2" @value="Value"/>Value</dd> | ||
</dl> | ||
</div> | ||
``` | ||
|
||
|
||
```css | ||
.definition-table { | ||
@extend %definition-table; | ||
} | ||
``` |
5 changes: 5 additions & 0 deletions
5
ui/packages/consul-ui/app/components/definition-table/debug.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[id^='docfy-demo-preview-definition-table'] { | ||
.definition-table { | ||
@extend %definition-table; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters