From 24035c92f8e97362e615d4b8cd4727384f847155 Mon Sep 17 00:00:00 2001 From: aurreco-uga Date: Sat, 4 Nov 2023 17:28:43 -0400 Subject: [PATCH 1/3] srt new icon refs to #52746 --- .../src/Components/InputControls/RadioList.css | 5 +++++ .../src/Components/InputControls/RadioList.tsx | 9 ++++++++- .../src/Views/ReporterForm/DownloadFormContainer.jsx | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/libs/wdk-client/src/Components/InputControls/RadioList.css b/packages/libs/wdk-client/src/Components/InputControls/RadioList.css index fa2c883043..88481dad31 100644 --- a/packages/libs/wdk-client/src/Components/InputControls/RadioList.css +++ b/packages/libs/wdk-client/src/Components/InputControls/RadioList.css @@ -13,6 +13,11 @@ ul.wdk-RadioList li.disabled { color: gray; } +ul.wdk-RadioList li.newBuild::after { + content: url('~@veupathdb/wdk-client/lib/Core/Style/images/new-feature.png'); + margin-left: 0.25em; +} + ul.wdk-RadioList li span { margin-left: 0.5em; } diff --git a/packages/libs/wdk-client/src/Components/InputControls/RadioList.tsx b/packages/libs/wdk-client/src/Components/InputControls/RadioList.tsx index 8c5cebb06c..4c1ae24e2c 100644 --- a/packages/libs/wdk-client/src/Components/InputControls/RadioList.tsx +++ b/packages/libs/wdk-client/src/Components/InputControls/RadioList.tsx @@ -14,6 +14,7 @@ type Props = { value: string; description?: string; disabled?: boolean; + newBuild?: number; }>; /** Value of the radio input element that should be checked **/ value?: string; @@ -46,13 +47,19 @@ class RadioList extends React.Component { } render() { + let currentBuild = 66; let className = baseClassName + ' ' + getValueOrDefault(this.props, 'className', ''); const { required = false } = this.props; return (