Skip to content

Commit

Permalink
#542500: fixed component container and style Error block (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
sc-ruslanmatkovskyi authored Aug 4, 2022
1 parent b7b1f47 commit 9b8060e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,11 @@ ul li {
display: flex;
flex-wrap: wrap;
}

.sc-jss-placeholder-error {
background: #ff0000;
outline: 5px solid #e36565;
padding: 10px;
color:#fff;
max-width: 500px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface ComponentProps {
params: ComponentParams;
}

const Container = (props: ComponentProps): JSX.Element => {
export const Default = (props: ComponentProps): JSX.Element => {
const { sitecoreContext } = useSitecoreContext();
const containerStyles = props.params && props.params.Styles ? props.params.Styles : '';
const styles = `${props.params.GridParameters} ${containerStyles}`.trimEnd();
Expand Down Expand Up @@ -47,5 +47,3 @@ const Container = (props: ComponentProps): JSX.Element => {
</div>
);
};

export default Container;

0 comments on commit 9b8060e

Please sign in to comment.