Skip to content

Commit

Permalink
doc updates (#195)
Browse files Browse the repository at this point in the history
Adds in a few minor updates for documentation and component changes.
  • Loading branch information
sikhote authored Dec 17, 2024
1 parent dd95b01 commit fde5053
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/mediaObject/CdrMediaObject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getLayoutStyling } from '../../utils/mediaObject';
import CdrLayout from '../layout/CdrLayout.vue';
import { breakpoints, spacing } from '../../utils/other';
/** Component for buttons that have a checked state. */
/** Component that pairs images or videos with related text in a consistent way */
defineOptions({ name: 'CdrMediaObject' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ $media-object-component: 'media-object';
@mixin cdr-media-object-base-mixin($component) {
& > .cdr-#{$component}__media {
grid-area: media;

& > :first-child {
display: block;
}
}

& > .cdr-#{$component}__content {
Expand Down
6 changes: 4 additions & 2 deletions src/types/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import type {
QueryType,
Position,
Alignment,
AlignmentValue,
MediaMeasurement,
} from './other';

Expand Down Expand Up @@ -338,6 +339,7 @@ export interface MediaObject extends Layout {
align?: Alignment;
/**
* The position of the media, in relation to the content. This can be an object with values for each Cedar breakpoint (xs, sm, md, lg).
* @demoSelectMultiple false
* @values top, right, bottom, left
*/
mediaPosition?: Position;
Expand All @@ -363,12 +365,12 @@ export interface MediaObject extends Layout {
* The alignment of the content along the x axis.
* @values start, center, end
*/
overlayRowAlign?: Alignment;
overlayRowAlign?: AlignmentValue;
/**
* The alignment of the content along the y axis.
* @values start, center, end
*/
overlayColumnAlign?: Alignment;
overlayColumnAlign?: AlignmentValue;
/**
* The spacing token to use for padding around the content. This can be an object with values for each Cedar breakpoint (xs, sm, md, lg).
* @demoSelectMultiple false
Expand Down

0 comments on commit fde5053

Please sign in to comment.