-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Permissions][FE] Design followup 5 #12793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3f77852
e15ada6
1d0d61b
704f1ae
b883970
d86b7ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1012,4 +1012,5 @@ export const mockWorkspaceMember = { | |
createdAt: '', | ||
updatedAt: '', | ||
userId: '1', | ||
userEmail: 'userEmail', | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
import { Theme, useTheme } from '@emotion/react'; | ||
import styled from '@emotion/styled'; | ||
import { Trans } from '@lingui/react/macro'; | ||
import { IconLock } from 'twenty-ui/display'; | ||
|
||
const StyledContainer = styled.div<{ theme: Theme }>` | ||
align-items: center; | ||
display: flex; | ||
display: inline-flex; | ||
|
||
background: ${({ theme }) => theme.background.transparent.lighter}; | ||
background: ${({ theme }) => theme.background.transparent.light}; | ||
color: ${({ theme }) => theme.font.color.tertiary}; | ||
font-weight: ${({ theme }) => theme.font.weight.regular}; | ||
font-size: ${({ theme }) => theme.font.size.sm}; | ||
padding: ${({ theme }) => theme.spacing(1, 2)}; | ||
font-size: ${({ theme }) => theme.font.size.md}; | ||
padding: ${({ theme }) => theme.spacing(1)}; | ||
gap: ${({ theme }) => theme.spacing(1)}; | ||
|
||
border-radius: 4px; | ||
border: 1px solid ${({ theme }) => theme.border.color.light}; | ||
`; | ||
|
||
export const ForbiddenFieldDisplay = () => { | ||
const theme = useTheme(); | ||
|
||
return ( | ||
<StyledContainer theme={theme}> | ||
<Trans>Forbidden</Trans> | ||
<IconLock size={theme.icon.size.sm} /> | ||
<Trans>Not shared</Trans> | ||
</StyledContainer> | ||
); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -293,7 +293,9 @@ const StyledButton = styled('button', { | |
}` | ||
: 'none'}; | ||
color: ${!inverted | ||
? theme.font.color.danger | ||
? !disabled | ||
? theme.font.color.danger | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remark: Looks very global, I personally can't estimate nor think about other side effects There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree. Although I think it never occurred before that we had button both disabled and with danger accent and the UI didn't match the figma. I'll double check though |
||
: theme.color.red20 | ||
: theme.font.color.inverted}; | ||
&:hover { | ||
background: ${!inverted | ||
|
Uh oh!
There was an error while loading. Please reload this page.