Skip to content

Commit

Permalink
fix: don't let Checkbox's LTR margin override AssetList's
Browse files Browse the repository at this point in the history
related to #124
  • Loading branch information
lazd committed Feb 25, 2020
1 parent 3ef1750 commit eb0b548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/assetlist/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ governing permissions and limitations under the License.
inline-size: var(--spectrum-miller-column-width);
block-size: var(--spectrum-miller-column-item-height);

padding-block:0;
padding-block: 0;
padding-inline: var(--spectrum-miller-column-item-padding-left) var(--spectrum-miller-column-item-padding-right);
margin-block: 0 var(--spectrum-miller-column-item-margin-bottom);
margin-inline: 0;
Expand Down Expand Up @@ -95,7 +95,8 @@ governing permissions and limitations under the License.

.spectrum-AssetList-itemSelector {
display: none;
margin: var(--spectrum-miller-column-checkbox-margin);
/* hack: this needs to be specified as margin-right to override Checkbox's margin for LTR */
margin-inline-end: var(--spectrum-miller-column-checkbox-margin);
}

.spectrum-AssetList-itemChildIndicator {
Expand Down

0 comments on commit eb0b548

Please sign in to comment.