Skip to content

Commit

Permalink
fix: minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Oct 18, 2024
1 parent c135508 commit 5a937ac
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
7 changes: 6 additions & 1 deletion src/bootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,12 @@ const renderApp = async () => {
Color(style['--primaryColor']).darken(0.5).hex() :
style['--primaryColor'],
colorLink: style['--complementaryColor'],
colorLinkHover: style['--secondaryColor']
colorLinkHover: style['--secondaryColor'],
borderRadius: 0,
borderRadiusLG: 0,
borderRadiusSM: 0,
borderRadiusXS: 0,
borderRadiusOuter: 0
}
}}
>
Expand Down
5 changes: 3 additions & 2 deletions src/components/DocumentationButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ export const DocumentationButton: React.FC<DocumentationButtonProps> = ({
<SimpleButton
onClick={() => window.open('/gis-docs', '_blank')}
className={finalClassName}
aria-label="documentation-button"
icon={
<FontAwesomeIcon
icon={faCircleQuestion}
/>
}
>
</SimpleButton>
type='link'
/>
);
};

Expand Down
1 change: 1 addition & 0 deletions src/components/Header/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
top: 0;
margin-bottom: 0;
z-index: 2;
padding: 0 .5rem;

background-color: var(--primaryColor);
display: flex;
Expand Down
12 changes: 2 additions & 10 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,9 @@ export const Header: React.FC<HeaderProps> = ({
const getDocsButton = () => {
if (ClientConfiguration.documentationButtonVisible) {
return (
<div
<DocumentationButton
key="documentation-button"
aria-label="documentation-button"
>
<DocumentationButton
key="documentation-button"
type="link"
>
</DocumentationButton>

</div>
/>
);
}
};
Expand Down
10 changes: 7 additions & 3 deletions src/components/ToolMenu/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
.ant-collapse-header {
border-radius: 0px;
background-color: #fff;
padding: 6px 40px 6px 16px;
padding: 6px 16px 6px 16px;

.ant-collapse-header-text span {
padding-left: 10px;
Expand Down Expand Up @@ -130,14 +130,18 @@
&.ant-collapse-item {
border-radius: 0px;
}

&:last-child {
// TODO Get color from variable?
border-bottom: 1px solid #d9d9d9;
}
}
}

button.collapse-btn {
width: 100%;
border: none;
border-radius: 0 0 8px 8px;
}
}

button:hover {
color: var(--secondaryColor);
Expand Down

0 comments on commit 5a937ac

Please sign in to comment.