-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CL-458] Exclude badges from truncation and vertically center content (…
- Loading branch information
Showing
5 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
10 changes: 4 additions & 6 deletions
10
...lt/popup/components/vault-v2/attachments/open-attachments/open-attachments.component.html
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,12 +55,13 @@ The content can be a button, anchor, or static container. | |
|
||
`bit-item-content` contains the following slots to help position the content: | ||
|
||
| Slot | Description | | ||
| ------------------ | --------------------------------------------------- | | ||
| default | primary text or arbitrary content; fan favorite | | ||
| `slot="secondary"` | supporting text; under the default slot | | ||
| `slot="start"` | commonly an icon or avatar; before the default slot | | ||
| `slot="end"` | commonly an icon; after the default slot | | ||
| Slot | Description | | ||
| ------------------------- | --------------------------------------------------------------------------------------------------------- | | ||
| default | primary text or arbitrary content; fan favorite | | ||
| `slot="secondary"` | supporting text; under the default slot | | ||
| `slot="start"` | commonly an icon or avatar; before the default slot | | ||
| `slot="default-trailing"` | commonly a badge; default content that should not be truncated and is placed right after the default slot | | ||
| `slot="end"` | commonly an icon; placed at the far end after the default slot | | ||
|
||
- Note: There is also an `end` slot within `bit-item` itself. Place | ||
[interactive secondary actions](#secondary-actions) there, and place non-interactive content (such | ||
|
@@ -71,6 +72,7 @@ The content can be a button, anchor, or static container. | |
<button bit-item-content type="button"> | ||
<bit-avatar slot="start" text="Foo"></bit-avatar> | ||
[email protected] | ||
<span bitBadge variant="primary" slot="default-trailing">Auto-fill</span> | ||
<ng-container slot="secondary"> | ||
<div>Bitwarden.com</div> | ||
<div><em>locked</em></div> | ||
|
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