Skip to content

Commit

Permalink
Merge pull request #158 from kieler/sdo/firefoxIconSize
Browse files Browse the repository at this point in the history
Added sidebar icon size css class as a workaround.
  • Loading branch information
NiklasRentzCAU authored Jan 10, 2024
2 parents ffddec4 + 68433fe commit 4db9d95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ export function FeatherIcon(paramProps: { iconId: FeatherIconNames }): VNode {
// Imitates what feather would usually do, all attributes are put in the styles (if possible) and
// the classes are written in as well. Missing are the xmlns and viewBox, but they do not seem to
// be necessary anyways.
const classes: Record<string, boolean> = {"feather": true}
const classes: Record<string, boolean> = {"feather": true, "sidebar-icon-size": true}
classes[`feather-${props.iconId}`] = true

return <svg
style={{
width: '24',
height: '24',
// FIXME This actual size of the svg is now captured by the sidebar-icon-size class.
// width: '24',
// height: '24',
fill: 'none',
stroke: 'currentColor',
strokeWidth: '2',
Expand Down
5 changes: 5 additions & 0 deletions packages/klighd-core/styles/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@

.sidebar__enabled-button {
--background: var(--kdc-color-sidebar-trigger-background-active);
}

.sidebar-icon-size {
width: 24px;
height: 24px;
}

0 comments on commit 4db9d95

Please sign in to comment.