Skip to content

Commit

Permalink
feat(icon): fix select & checkbox icons
Browse files Browse the repository at this point in the history
Signed-off-by: Stagnol <a.stagnol@gmail.com>
  • Loading branch information
astagnol authored and dpellier committed Jul 29, 2024
1 parent 6ad6c7a commit 0ab68bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import '~tom-select/dist/css/tom-select.bootstrap4.min.css';

$select-background-color: #fff;
$select-caret-size: 24px;
$select-caret-size: 14px;
$select-base-padding: 8px;
$select-padding-right: $select-caret-size + ($select-base-padding * 2);

Expand Down Expand Up @@ -170,14 +170,14 @@ $select-padding-right: $select-caret-size + ($select-base-padding * 2);
height: auto;
color: var(--ods-color-primary-500);
font-size: $select-caret-size;
content: '\e916';
content: '\e917';
}
}

&.dropdown-active {
.ts-control {
&::after {
content: '\e919';
content: '\e91a';
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion packages/ods/src/style/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $ods-checkbox-size: 16px;

position: absolute;
color: var(--ods-color-primary-000);
font-size: 0.5rem;
}

&:focus-visible {
Expand All @@ -35,7 +36,7 @@ $ods-checkbox-size: 16px;

&:indeterminate {
&::before {
content: "\e962";
content: "\e963";
}
}

Expand Down
9 changes: 5 additions & 4 deletions packages/storybook/stories/components/icon/icon.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const Demo: StoryObj = {
},
}),
args: {
name: ODS_ICON_NAME.plus,
name: ODS_ICON_NAME.home,
alt: 'home icon'
},
};

Expand Down Expand Up @@ -67,7 +68,7 @@ export const Default: StoryObj = {
layout: 'centered',
},
render: () => html`
<ods-icon name="arrow-left"></ods-icon>
<ods-icon name="home"></ods-icon>
`,
};

Expand All @@ -77,7 +78,7 @@ export const Name: StoryObj = {
layout: 'centered',
},
render: () => html`
<ods-icon name="arrow-left"></ods-icon>
<ods-icon name="warning-triangle"></ods-icon>
<ods-icon name="home"></ods-icon>
<ods-icon name="plus"></ods-icon>
`,
};

0 comments on commit 0ab68bf

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy