Skip to content

Commit 4c702e0

Browse files
Release v-1-16-0 (#24)
* Sets absolute position and z for Admin messages overlay * UX improvement - color blue to purple on data browser filters --------- Co-authored-by: Lina <lina.lumburovska@kern.ai>
1 parent 95fc4ee commit 4c702e0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/AdminMessages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function AdminMessages(props: AdminMessagesProps) {
1313
props.setActiveAdminMessages(adminMessagesCopy);
1414
}
1515

16-
return (<div className={`pointer-events-none font-dm-sans flex-col right-0 fixed inset-y-0 sm:flex sm:justify-end sm:px-6 sm:pb-5 lg:px-8 ${isOnLabelingPage ? 'bottom-8' : 'bottom-0'}`}>
16+
return (<div className={`pointer-events-none font-dm-sans flex-col right-0 absolute z-30 inset-y-0 sm:flex sm:justify-end sm:px-6 sm:pb-5 lg:px-8 ${isOnLabelingPage ? 'bottom-8' : 'bottom-0'}`}>
1717
{props.adminMessages && props.adminMessages.map((activeMessage, index) => (
1818
<div key={activeMessage.id} className={`pointer-events-auto items-center justify-between gap-x-6 py-2.5 mt-2 border px-6 sm:rounded-xl sm:py-3 sm:pr-3.5 sm:pl-4 ${activeMessage.borderColor} ${activeMessage.backgroundColor} ${activeMessage.visible ? 'flex' : 'hidden'}`}
1919
style={{ maxWidth: props.maxWidth ?? 'calc(100vw - 200px)' }}>

components/Dropdown2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function Dropdown2(props: DropdownProps) {
183183
{!props.hasCheckboxesThreeStates && props.buttonName}
184184
{props.hasCheckboxesThreeStates && <label
185185
className="truncate cursor-pointer text-sm">{getDropdownDisplayText(props.options, "EMPTY")}
186-
<span style={{ color: '#2563eb' }}>{getDropdownDisplayText(props.options, "NOT_NEGATED")}</span>
186+
<span style={{ color: '#4e46e5' }}>{getDropdownDisplayText(props.options, "NOT_NEGATED")}</span>
187187
<span style={{ color: '#ef4444' }}>{getDropdownDisplayText(props.options, "NEGATED")}</span>
188188
</label>}
189189
<IconChevronDown

helpers/dropdown-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export function getDropdownDisplayText(
131131
export function getActiveNegateGroupColor(group: any) {
132132
if (!group['active']) return null;
133133
if (group['negate']) {
134-
return group['negate'] ? '#ef4444' : '#2563eb';
134+
return group['negate'] ? '#ef4444' : '#4e46e5';
135135
}
136-
return '#2563eb';
136+
return '#4e46e5';
137137

138138
}

0 commit comments

Comments
 (0)