Skip to content

Commit

Permalink
swapped first child for first of type
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Thibault committed Sep 30, 2022
1 parent f909e10 commit b31eb44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/accordion/src/Accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
padding-bottom: var(--o-ui-sp-2);
}

.o-ui-accordion-header:first-child {
.o-ui-accordion-header:first-of-type {
margin-top: 0;
}

Expand Down
8 changes: 4 additions & 4 deletions packages/components/src/input-group/src/InputGroup.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

/* ADDON */
.o-ui-input-group> :first-child:not(.o-ui-input-group-input) {
.o-ui-input-group > :first-of-type:not(.o-ui-input-group-input) {
margin-right: -1px;
}

Expand All @@ -45,13 +45,13 @@
}

/* ADDON | START */
.o-ui-input-group-input:not(:first-child),
.o-ui-input-group-input:not(:first-child) input {
.o-ui-input-group-input:not(:first-of-type),
.o-ui-input-group-input:not(:first-of-type) input {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}

.o-ui-input-group-addon:first-child {
.o-ui-input-group-addon:first-of-type {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
flex-shrink: 0;
Expand Down
4 changes: 2 additions & 2 deletions packages/icons/docs/icon-gallery/details/Variants.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
margin-top: var(--o-ui-sp-4);
}

.o-ui-sb-gallery-item-variant-section-toggle:first-child {
.o-ui-sb-gallery-item-variant-section-toggle:first-of-type {
margin-top: 0;
}

Expand All @@ -24,6 +24,6 @@
margin-bottom: 0 !important;
}

.o-ui-sb-gallery-item-variant-section-content .sbdocs-h4:first-child {
.o-ui-sb-gallery-item-variant-section-content .sbdocs-h4:first-of-type {
margin-top: 0;
}

0 comments on commit b31eb44

Please sign in to comment.