Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ export default function RadioButtons(props: RadioButtonsProps) {
return (
<div>
<h4 style={{ marginTop: 0, marginBottom: 0 }}>{label}</h4>
<div
className='selectable-card-grid-style'
style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(min(100%, 40ch), 1fr))', gridAutoRows: '1fr', gap: '0.5rem' }}
>
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(min(30%, 40ch), 1fr))', gridAutoRows: '1fr', gap: '0.5rem' }}>
<SelectableCard
hideFieldLabels={hideFieldLabels}
additionalProps={additionalProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function SelectableCard(props) {
margin: '5px'
}}
>
<div style={{ color: 'rgba(0, 0, 0, 0.6)' }}>{field.name}</div>
{field.name && <div>{field.name}</div>}
<div>{field?.value?.props.value}</div>
</div>
))}
Expand Down
4 changes: 0 additions & 4 deletions packages/react-sdk-components/src/samples/Embedded/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@
#pega-part-of-page img {
background-color: transparent !important;
}
Comment on lines 43 to 45
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this part to selectable card component as discussed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be covered in Sambhu's pr


.selectable-card-grid-style {
grid-template-columns: repeat(auto-fit, minmax(min(30%, 40ch), 1fr)) !important;
}