Feeds
- HTML/CSS:Dev Ready
- Layout:Desktop Only
A feed consists of a list of recurring elements of similar types. Examples of a feed would be a discussion feed.
Base
Preview
About Base
A discussion feed consists of a list of posts. A .slds-feed__item contains a post and comments related to that post.
About Feeds
Accessibility
Most feeds have a media object containing the user's name and avatar image.
If both the image and the name link to the same location, add tab-index="-1"
to the <a> element so that assistive technology does not read out
duplicate links.
Overview of CSS Classes
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
| Selector | .slds-feed |
|---|---|
| Summary | A discussion feed consists of a list of posts. A |
| Support | dev-ready |
| Restrict | div |
| Variant | True |
| Selector | .slds-feed__list |
|---|---|
| Summary | |
| Restrict | .slds-feed ul |
| Selector | .slds-feed__item |
|---|---|
| Summary | |
| Restrict | .slds-feed__list li |
| Selector | .slds-feed__item-comments |
|---|---|
| Summary | Container for feed item comments |
| Restrict | .slds-feed__item div |
| Selector | .slds-post |
|---|---|
| Summary | |
| Support | dev-ready |
| Restrict | .slds-feed article |
| Variant | True |
| Selector | .slds-post__header |
|---|---|
| Summary | Header region of a feed post |
| Restrict | .slds-post header |
| Selector | .slds-post__content |
|---|---|
| Summary | Content region of a feed post |
| Restrict | .slds-post div |
| Selector | .slds-post__footer |
|---|---|
| Summary | Footer region of a feed post |
| Restrict | .slds-post footer |
| Selector | .slds-post__footer-actions-list |
|---|---|
| Summary | Footer region that contains quick action items for post |
| Restrict | .slds-post__footer ul |
| Selector | .slds-post__footer-action |
|---|---|
| Summary | Action items within the feed post footer |
| Restrict | .slds-post__footer-actions-list button |
| Selector | .slds-is-active |
|---|---|
| Summary | Active state for like button |
| Restrict | .slds-post__footer-action |
| Modifier | True |
| Selector | .slds-post__footer-meta-list |
|---|---|
| Summary | Footer region that contains read only items for post |
| Restrict | .slds-post__footer ul |