Skip to content

Commit

Permalink
Chore: get rid of unused CSS class selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bulychev committed Sep 29, 2023
1 parent d905369 commit 26a44f9
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
::ng-deep .first-group,
::ng-deep .second-group {
::ng-deep .form-group {
padding: 20px;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<dx-form id="form" [formData]="employee">
<dxi-item itemType="group" cssClass="first-group" [colCount]="4">
<dxi-item itemType="group" cssClass="form-group" [colCount]="4">
<dxi-item>
<div class="form-avatar"></div>
</dxi-item>
Expand All @@ -13,7 +13,7 @@
></dxi-item>
</dxi-item>
</dxi-item>
<dxi-item itemType="group" cssClass="second-group" [colCount]="2">
<dxi-item itemType="group" cssClass="form-group" [colCount]="2">
<dxi-item itemType="group">
<dxi-item dataField="Address"></dxi-item>
<dxi-item dataField="City"></dxi-item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DemoApp.controller('DemoController', ($scope) => {
formData: employee,
items: [{
itemType: 'group',
cssClass: 'first-group',
cssClass: 'form-group',
colCount: 4,
items: [{
template: "<div class='form-avatar'></div>",
Expand All @@ -26,7 +26,7 @@ DemoApp.controller('DemoController', ($scope) => {
}],
}, {
itemType: 'group',
cssClass: 'second-group',
cssClass: 'form-group',
colCount: 2,
items: [{
itemType: 'group',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.first-group,
.second-group {
.form-group {
padding: 20px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const avatarRender = () => (
export default function App() {
return (
<Form formData={employee}>
<GroupItem cssClass="first-group" colCount={4}>
<GroupItem cssClass="form-group" colCount={4}>
<SimpleItem render={avatarRender}>
</SimpleItem>
<GroupItem colSpan={3}>
Expand All @@ -36,7 +36,7 @@ export default function App() {
/>
</GroupItem>
</GroupItem>
<GroupItem cssClass="second-group" colCount={2}>
<GroupItem cssClass="form-group" colCount={2}>
<GroupItem>
<SimpleItem dataField="Address" />
<SimpleItem dataField="City" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.first-group,
.second-group {
.form-group {
padding: 20px;
}

Expand Down
7 changes: 3 additions & 4 deletions JSDemos/Demos/Common/FormsAndMultiPurposeOverview/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>
<DxGroupItem
:col-count="4"
css-class="first-group"
css-class="form-group"
>
<DxSimpleItem template="avatar-template"/>
<DxGroupItem :col-span="3">
Expand All @@ -20,7 +20,7 @@
</DxGroupItem>
<DxGroupItem
:col-count="2"
css-class="second-group"
css-class="form-group"
>
<DxGroupItem>
<DxSimpleItem data-field="Address"/>
Expand Down Expand Up @@ -90,8 +90,7 @@ export default {
};
</script>
<style>
.first-group,
.second-group {
.form-group {
padding: 20px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(() => {
formData: employee,
items: [{
itemType: 'group',
cssClass: 'first-group',
cssClass: 'form-group',
colCount: 4,
items: [{
template: "<div class='form-avatar'></div>",
Expand All @@ -24,7 +24,7 @@ $(() => {
}],
}, {
itemType: 'group',
cssClass: 'second-group',
cssClass: 'form-group',
colCount: 2,
items: [{
itemType: 'group',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.first-group,
.second-group {
.form-group {
padding: 20px;
}

Expand Down

0 comments on commit 26a44f9

Please sign in to comment.