-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Visuelt løft på redigeringspanel for prosjektinformasjon (#1272) [ski…
…p-ci] Co-authored-by: Ole Martin Pettersen <[email protected]>
- Loading branch information
Showing
24 changed files
with
2,029 additions
and
1,785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...amework/ProjectWebParts/src/components/ProjectInformation/BasePanel/BasePanel.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.root { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
padding: 20px 24px; | ||
} |
13 changes: 6 additions & 7 deletions
13
...ramework/ProjectWebParts/src/components/ProjectInformation/BasePanel/ClosePanelButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import { DefaultButton } from '@fluentui/react' | ||
import strings from 'ProjectWebPartsStrings' | ||
import React, { FC } from 'react' | ||
import { useProjectInformationContext } from '../context' | ||
import { CLOSE_PANEL } from '../reducer' | ||
import { IClosePanelButtonProps } from './types' | ||
import { Button, ButtonProps } from '@fluentui/react-components' | ||
|
||
export const ClosePanelButton: FC<IClosePanelButtonProps> = (props) => { | ||
export const ClosePanelButton: FC<ButtonProps> = (props) => { | ||
const context = useProjectInformationContext() | ||
return ( | ||
<DefaultButton | ||
<Button | ||
{...props} | ||
text={strings.CancelText} | ||
styles={{ root: { marginLeft: props.noMargin ? 0 : 8 } }} | ||
onClick={(e) => { | ||
props.onClick && props.onClick(e) | ||
context.dispatch(CLOSE_PANEL()) | ||
}} | ||
/> | ||
> | ||
{strings.CancelText} | ||
</Button> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...rts/src/components/ProjectInformation/EditPropertiesPanel/EditPropertiesPanel.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
.root { | ||
margin: 0; | ||
|
||
.field { | ||
min-height: 32px; | ||
border-radius: var(--borderRadiusMedium); | ||
position: relative; | ||
box-sizing: border-box; | ||
padding: 0 var(--pacingHorizontalMNudge); | ||
background-color: var(--colorNeutralBackground1); | ||
border: 1px solid var(--colorNeutralStroke1); | ||
border-bottom-color: var(--colorNeutralStrokeAccessible); | ||
|
||
&::after { | ||
box-sizing: border-box; | ||
content: ''; | ||
position: absolute; | ||
left: -1px; | ||
bottom: -1px; | ||
right: -1px; | ||
border-bottom-left-radius: var(--borderRadiusMedium); | ||
border-bottom-right-radius: var(--borderRadiusMedium); | ||
border-bottom: 2px solid var(--colorCompoundBrandStroke); | ||
clip-path: inset(calc(100% - 2px) 0px 0px); | ||
transform: scaleX(0); | ||
transition-property: transform; | ||
transition-duration: var(--durationUltraFast); | ||
transition-delay: var(--curveAccelerateMid); | ||
} | ||
|
||
&:focus-within::after { | ||
transform: scaleX(1); | ||
transition-property: transform; | ||
transition-duration: var(--durationNormal); | ||
transition-delay: var(curveDecelerateMid); | ||
} | ||
|
||
&:focus-within:active::after { | ||
border-bottom-color: (--colorCompoundBrandStrokePressed); | ||
} | ||
|
||
&:focus-within { | ||
outline: 2px solid transparent; | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...ation/EditPropertiesPanel/EditPropertiesPanelFooter/EditPropertiesPanelFooter.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.