Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Sep 16, 2024
1 parent 495122e commit d00b2a7
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 66 deletions.
40 changes: 19 additions & 21 deletions karavan-app/src/main/webui/src/designer/selector/DslSelector.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,29 +133,27 @@
font-weight: 200;
}

.dsl-modal .label-eip {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--orange-200);
}

.dsl-modal .label-component {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--blue-300);
}

.dsl-modal .label-kamelet {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--green-300);
}

.dsl-modal .label-component-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--blue-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}

.dsl-modal .label-kamelet-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--green-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
.dsl-modal .navigation-selector,
.dsl-modal .dsl-card .pf-v5-c-card__header-main {
.label-eip {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--orange-200);
}
.label-component {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--blue-300);
}
.label-kamelet {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--green-300);
}
.label-component-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--blue-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}
.label-kamelet-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--green-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}
}


.dsl-modal .labels {
opacity: 0.5;
font-weight: 200;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function DslSelector(props: Props) {
const isComp = selectedToggles.includes('components')
const isKam = selectedToggles.includes('kamelets')
return (
<ToggleGroup aria-label="Default with single selectable">
<ToggleGroup aria-label="Default with single selectable" className='navigation-selector'>
{parentDsl !== undefined && <ToggleGroupItem
text={
<div style={{display: 'flex', flexDirection: 'row'}}>
Expand Down
40 changes: 19 additions & 21 deletions karavan-designer/src/designer/selector/DslSelector.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,29 +133,27 @@
font-weight: 200;
}

.dsl-modal .label-eip {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--orange-200);
}

.dsl-modal .label-component {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--blue-300);
}

.dsl-modal .label-kamelet {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--green-300);
}

.dsl-modal .label-component-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--blue-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}

.dsl-modal .label-kamelet-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--green-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
.dsl-modal .navigation-selector,
.dsl-modal .dsl-card .pf-v5-c-card__header-main {
.label-eip {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--orange-200);
}
.label-component {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--blue-300);
}
.label-kamelet {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--green-300);
}
.label-component-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--blue-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}
.label-kamelet-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--green-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}
}


.dsl-modal .labels {
opacity: 0.5;
font-weight: 200;
Expand Down
2 changes: 1 addition & 1 deletion karavan-designer/src/designer/selector/DslSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function DslSelector(props: Props) {
const isComp = selectedToggles.includes('components')
const isKam = selectedToggles.includes('kamelets')
return (
<ToggleGroup aria-label="Default with single selectable">
<ToggleGroup aria-label="Default with single selectable" className='navigation-selector'>
{parentDsl !== undefined && <ToggleGroupItem
text={
<div style={{display: 'flex', flexDirection: 'row'}}>
Expand Down
40 changes: 19 additions & 21 deletions karavan-space/src/designer/selector/DslSelector.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,29 +133,27 @@
font-weight: 200;
}

.dsl-modal .label-eip {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--orange-200);
}

.dsl-modal .label-component {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--blue-300);
}

.dsl-modal .label-kamelet {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--green-300);
}

.dsl-modal .label-component-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--blue-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}

.dsl-modal .label-kamelet-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--green-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
.dsl-modal .navigation-selector,
.dsl-modal .dsl-card .pf-v5-c-card__header-main {
.label-eip {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--orange-200);
}
.label-component {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--blue-300);
}
.label-kamelet {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--palette--green-300);
}
.label-component-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--blue-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}
.label-kamelet-preview {
--pf-v5-c-badge--Color: var(--pf-v5-global--palette--green-300);
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-c-badge--m-read--BackgroundColor);
}
}


.dsl-modal .labels {
opacity: 0.5;
font-weight: 200;
Expand Down
2 changes: 1 addition & 1 deletion karavan-space/src/designer/selector/DslSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function DslSelector(props: Props) {
const isComp = selectedToggles.includes('components')
const isKam = selectedToggles.includes('kamelets')
return (
<ToggleGroup aria-label="Default with single selectable">
<ToggleGroup aria-label="Default with single selectable" className='navigation-selector'>
{parentDsl !== undefined && <ToggleGroupItem
text={
<div style={{display: 'flex', flexDirection: 'row'}}>
Expand Down

0 comments on commit d00b2a7

Please sign in to comment.