Skip to content

Commit e6d4c94

Browse files
committed
wip: properties panel styling edit pencil icon
1 parent b86bc21 commit e6d4c94

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/webui/src/client/styles/propertiesPanel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
}
198198

199199
> .properties-panel-pop-up__has-been-edited {
200-
background-color: #ba0b9d24;
200+
background-color: #ffffff16;
201201
border-radius: 8px;
202202
padding: 4px 4px;
203203
}

packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { RundownId } from '@sofie-automation/corelib/dist/dataModel/Ids'
2929
import { SchemaFormInPlace } from '../../lib/forms/SchemaFormInPlace'
3030
import { RundownUtils } from '../../lib/rundown'
3131
import * as CoreIcon from '@nrk/core-icons/jsx'
32+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
3233

3334
interface PendingChange {
3435
operationId: string
@@ -376,7 +377,12 @@ function EditingTypeAction(props: {
376377
</div>
377378
</a>
378379
<span className="propertiespanel-pop-up__label">
379-
{' '}
380+
{hasBeenEdited && (
381+
<>
382+
{' '}
383+
<FontAwesomeIcon icon="pencil-alt" />
384+
</>
385+
)}{' '}
380386
{translateMessage(props.userEditOperation.label, i18nTranslator)}
381387
</span>
382388
</div>
@@ -534,6 +540,7 @@ function EditingTypeChangeSourceLayerSource(props: {
534540
)}
535541
onChange={handleSourceChange}
536542
>
543+
{hasBeenEdited && <FontAwesomeIcon icon="pencil-alt" />}
537544
<SchemaFormInPlace
538545
schema={selectedGroupSchema}
539546
object={selectedValues}

0 commit comments

Comments
 (0)