Skip to content

Commit

Permalink
change spacing to sap-margin-tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
mrCherry97 committed Oct 31, 2024
1 parent 324344d commit b548107
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/resources/Namespaces/AllNamespacesDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function AllNamespacesDetails() {
>
{t('common.headers.monitoring-and-health')}
</Title>
<div className="cluster-stats" style={spacing.sapUiTinyMargin}>
<div className="cluster-stats sap-margin-tiny">
<ResourcesUsage />
<NamespaceWorkloads />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/Namespaces/YamlUpload/YamlUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function YamlUpload({
editor.getModel().setValue(val);
}}
/>
<p style={spacing.sapUiTinyMargin}>{t('upload-yaml.or-paste-here')}</p>
<p className="sap-margin-tiny">{t('upload-yaml.or-paste-here')}</p>
<div
className={'yaml-upload-modal__content'}
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function RichEditorSection({ item, onChange, onDelete, pushValue }) {
>
{keyInput}
<div className="rich-editor__dropdown-wrapper">
<div style={spacing.sapUiTinyMargin}>{languageDropdown}</div>
<div className="sap-margin-tiny">{languageDropdown}</div>
</div>
{valueInput}
</ResourceForm.CollapsibleSection>
Expand Down
4 changes: 3 additions & 1 deletion src/shared/components/DescriptionHint/DescriptionHint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type HintButtonProps = {
style?: CSSProperties;
disableLinkDetection?: boolean;
ariaTitle?: string;
className?: string;
};

export function HintButton({
Expand All @@ -21,6 +22,7 @@ export function HintButton({
style,
disableLinkDetection = false,
ariaTitle = '',
className,
}: HintButtonProps) {
const [ID] = useState(uniqueId('id-')); //todo: migrate to useID from react after upgrade to version 18+
const descBtnRef = useRef(null);
Expand All @@ -38,7 +40,7 @@ export function HintButton({
ref={descBtnRef}
icon="hint"
design="Transparent"
style={style}
className={className}
onClick={e => {
e.stopPropagation();
setShowTitleDescription(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const DynamicPageComponent = ({
)}
{description && (
<HintButton
style={spacing.sapUiTinyMargin}
className="sap-margin-tiny"
setShowTitleDescription={setShowTitleDescription}
showTitleDescription={showTitleDescription}
description={description}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export function ResourceHealthCard({
{t('common.headers.monitoring-and-health')}
</Title>
)}
<div className="cluster-stats" style={spacing.sapUiTinyMargin}>
{customHealthCards}
</div>
<div className="cluster-stats sap-margin-tiny">{customHealthCards}</div>
</>
);
}

0 comments on commit b548107

Please sign in to comment.