Skip to content

Commit 76becc3

Browse files
authored
fix(cards): add annotations for einstein theme (#4629)
1 parent 5fa98cc commit 76becc3

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

RELEASENOTES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<!-- Release notes authoring guidelines: http://keepachangelog.com/ -->
22
<!-- !!! THIS FILE IS AUTO-GENERATED !!! DO NOT EDIT THIS FILE MANUALLY !!! -->
33

4-
## Release 2.15.1 - April 7, 2021
4+
## Release 2.15.1 - April 12, 2021
55

66
## Components
7+
### [Cards](https://www.lightningdesignsystem.com/components/cards)
8+
#### Added
9+
- Added annotations for Einstein themed cards
10+
711
### [Menus](https://www.lightningdesignsystem.com/components/menus)
812
#### Added
913
- Added `aria-expanded` attribute to menu triggers with value dependent on menu's open state

ui/components/cards/RELEASENOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# Cards Release Notes
44

55
<!-- ## [Unreleased] -->
6+
7+
## 2.15.1
8+
9+
### Added
10+
11+
- Added annotations for Einstein themed cards
612
## 2.14.0
713

814
### Added

ui/components/einstein-header/base/_index.scss

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
22
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license
33

4+
// Annotation in cards/einstein/index.scss
45
.slds-einstein-header {
56
position: relative;
67
background-color: $einstein-header-background-color;
@@ -18,16 +19,26 @@
1819
color: currentColor;
1920
}
2021

21-
&__figure,
22-
&__figure:last-child {
22+
/**
23+
* @summary Einstein themed card header figure
24+
* @selector .slds-einstein-header__figure
25+
* @restrict .slds-einstein-header
26+
*/
27+
.slds-einstein-header__figure,
28+
.slds-einstein-header__figure:last-child {
2329
margin-bottom: calc((#{$spacing-small} + 5px) * -1);
2430
height: rem(76px);
2531
background-image: url($einstein-header-figure);
2632
background-position: right bottom;
2733
background-repeat: no-repeat;
2834
}
2935

30-
&__actions {
36+
/**
37+
* @summary Einstein themed card header actions
38+
* @selector .slds-einstein-header__actions
39+
* @restrict .slds-einstein-header
40+
*/
41+
.slds-einstein-header__actions {
3142
padding-left: $spacing-medium;
3243
display: flex;
3344
align-items: center;
@@ -40,6 +51,7 @@
4051
}
4152
}
4253

54+
// Annotation in popovers/einstein/index.scss
4355
.slds-popover_einstein {
4456

4557
&.slds-nubbin_top,

ui/components/popovers/einstein/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
* @support dev-ready
1313
* @variant
1414
*/
15+
16+
// CSS found in 'einstein-header/base/index'

0 commit comments

Comments
 (0)