diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeProvideByTab.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeProvideByTab.vue index 34383955e..a177d7002 100644 --- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeProvideByTab.vue +++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/ContributeProvideByTab.vue @@ -125,5 +125,45 @@ filter: grayscale(0) !important; } - + label { + display: inline-flex; + align-items: center; + gap: 5px; /* space between radio and text */ + } + /*Add a background color to the radio button when focused */ + .radio-button:focus { + box-shadow: 0 0 0 4px $nhsuk-yellow !important; + outline: 0; + //box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.5); + } + + .radio-button { + appearance: none; + -webkit-appearance: none; + width: 24px; + height: 24px; + border: 2px solid black; + border-radius: 50%; + position: relative; + cursor: pointer; + transition: box-shadow 0.3s; + outline: none; + } + + /* Yellow glow on focus */ + .radio-button:focus { + box-shadow: 0 0 0 4px $nhsuk-yellow; /* yellow circle */ + } + + /* Inner black dot when selected */ + .radio-button:checked::before { + content: ""; + position: absolute; + top: 4px; + left: 4px; + width: 12px; + height: 12px; + background-color: black; + border-radius: 50%; + } \ No newline at end of file diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue index 055815e26..338817b8b 100644 --- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue +++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/ContentCommon.vue @@ -602,3 +602,49 @@ }) + diff --git a/LearningHub.Nhs.WebUI/Styles/nhsuk/common.scss b/LearningHub.Nhs.WebUI/Styles/nhsuk/common.scss index 13086fde1..1c18cc3cc 100644 --- a/LearningHub.Nhs.WebUI/Styles/nhsuk/common.scss +++ b/LearningHub.Nhs.WebUI/Styles/nhsuk/common.scss @@ -249,46 +249,3 @@ form label.nhsuk-u-visually-hidden { box-shadow: 0 0 0 4px $nhsuk-yellow; } -/*Add a background color to the radio button when focused */ -.radio-button:focus { - box-shadow: 0 0 0 4px $nhsuk-yellow !important; - outline: 0; - //box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.5); -} - -.radio-button { - appearance: none; - -webkit-appearance: none; - width: 24px; - height: 24px; - border: 2px solid black; - border-radius: 50%; - position: relative; - cursor: pointer; - transition: box-shadow 0.3s; - outline: none; -} - -/* Yellow glow on focus */ -.radio-button:focus { - box-shadow: 0 0 0 4px $nhsuk-yellow; /* yellow circle */ -} - -/* Inner black dot when selected */ -.radio-button:checked::before { - content: ""; - position: absolute; - top: 4px; - left: 4px; - width: 12px; - height: 12px; - background-color: black; - border-radius: 50%; -} - -label { - display: inline-flex; - align-items: center; - gap: 5px; /* space between radio and text */ - margin: 7px; -} \ No newline at end of file diff --git a/WebAPI/LearningHub.Nhs.Services/MyLearningService.cs b/WebAPI/LearningHub.Nhs.Services/MyLearningService.cs index 82e2ce2f8..870ed3f32 100644 --- a/WebAPI/LearningHub.Nhs.Services/MyLearningService.cs +++ b/WebAPI/LearningHub.Nhs.Services/MyLearningService.cs @@ -252,7 +252,7 @@ public async Task> PopulateMyLearningDetai MinorVersion = resourceActivity.MinorVersion, Version = resourceActivity.MajorVersion + "." + resourceActivity.MinorVersion, ResourceType = resourceActivity.Resource.ResourceTypeEnum, - ActivityDate = resourceActivity.ActivityStart.GetValueOrDefault(), + ActivityDate = resourceActivity.ActivityStart ?? resourceActivity.CreateDate, ActivityStatus = (ActivityStatusEnum)resourceActivity.ActivityStatusId, IsCurrentResourceVersion = resourceActivity.ResourceVersionId == resourceActivity.Resource.CurrentResourceVersionId, VersionStatusId = (int?)resourceActivity.ResourceVersion.VersionStatusEnum,