fix divider color and style

This commit is contained in:
Niels Lyngsø
2023-02-21 20:07:57 +01:00
parent 1a358c1374
commit a8b4cf2798
2 changed files with 16 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
import { html } from 'lit';
import { css, html } from 'lit';
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
import { customElement, property, state } from 'lit/decorators.js';
import { repeat } from 'lit/directives/repeat.js';
@@ -8,7 +8,17 @@ import { DocumentTypePropertyTypeModel, PropertyTypeContainerViewModelBaseModel
@customElement('umb-document-workspace-view-edit-properties')
export class UmbDocumentWorkspaceViewEditPropertiesElement extends UmbLitElement {
static styles = [UUITextStyles];
static styles = [
UUITextStyles,
css`
.property {
border-bottom: 1px solid var(--uui-color-divider);
}
.property:last-child {
border-bottom: 0;
}
`,
];
private _containerName?: string;
@@ -102,7 +112,10 @@ export class UmbDocumentWorkspaceViewEditPropertiesElement extends UmbLitElement
return repeat(
this._propertyStructure,
(property) => property.alias,
(property) => html`<umb-property-type-based-property .property=${property}></umb-property-type-based-property> `
(property) =>
html`<umb-property-type-based-property
class="property"
.property=${property}></umb-property-type-based-property> `
);
}
}

View File

@@ -28,10 +28,6 @@ export class UmbWorkspacePropertyElement extends UmbLitElement {
display: block;
}
:host(:last-child) umb-workspace-property-layout {
border-bottom: 0;
}
p {
color: var(--uui-color-text-alt);
}
@@ -45,11 +41,6 @@ export class UmbWorkspacePropertyElement extends UmbLitElement {
#property-action-menu[open] {
opacity: 1;
}
hr {
border: 0;
border-top: 1px solid var(--uui-color-border);
}
`,
];