Skip to content

Commit

Permalink
Merge branch 'main' into simple-record-page
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke authored Nov 1, 2023
2 parents d15eacd + 51ef00a commit 2d0837e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
22 changes: 22 additions & 0 deletions packages/libs/wdk-client/src/Core/Style/wdk-Common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,28 @@ td {
vertical-align: baseline;
}

// =begin <dl>
// Definition list styling

dl {
display: grid;
grid-template-columns: max-content auto;
row-gap: 0.3em;
column-gap: 1em;
}

dt {
grid-column-start: 1;
justify-self: end;
font-weight: bold;
}

dd {
grid-column-start: 2;
margin: 0;
}
// =end <dl>

img[data-assets-src] {
visibility: hidden;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import StepValidationInfo from '../../Views/Question/StepValidationInfo';
import { Tabs } from '../../Components';

import '../../Views/Question/DefaultQuestionForm.scss';
import Banner from '@veupathdb/coreui/lib/components/banners/Banner';
import { type } from 'os';

type TextboxChangeHandler = (
event: React.ChangeEvent<HTMLInputElement>
Expand Down Expand Up @@ -408,9 +410,12 @@ export function ParameterList(props: ParameterListProps) {
}
/>
{parameter.visibleHelp !== undefined && (
<div className={cx('VisibleHelp')}>
{safeHtml(parameter.visibleHelp)}
</div>
<Banner
banner={{
type: 'info',
message: safeHtml(parameter.visibleHelp, null, 'div'),
}}
/>
)}
<div className={cx('ParameterControl')}>
{parameterElements[parameter.name]}
Expand Down

0 comments on commit 2d0837e

Please sign in to comment.