Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Stardust in TS project with `--isolatedModules` can be built @layershifter ([#894](https://github.com/stardust-ui/react/pull/894))
- Keyframes are behaving as expected when RTL is dynamically switched @layershifter ([#894](https://github.com/stardust-ui/react/pull/894))
- Fix inserting char at a cursor position will the cursor to end in `Dropdown` @layershifter ([#897](https://github.com/stardust-ui/react/pull/897))
- Replace margins with padding in `chatItemStyles` for Teams theme ([#878](https://github.com/stardust-ui/react/pull/878))

<!--------------------------------[ v0.21.0 ]------------------------------- -->
## [v0.21.0](https://github.com/stardust-ui/react/tree/v0.21.0) (2019-02-12)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ const getChatMessageEvaluatedStyles = (p: ChatItemProps) => ({
const chatItemStyles: ComponentSlotStylesInput<ChatItemProps, ChatItemVariables> = {
root: ({ props: p, variables: v }): ICSSInJSStyle => ({
position: 'relative',
...((!p.attached || p.attached === 'top') && { marginTop: pxToRem(16) }),
...((!p.attached || p.attached === 'top') && { paddingTop: pxToRem(16) }),
...((p.attached === 'bottom' || p.attached === true) && {
marginTop: pxToRem(2),
paddingTop: pxToRem(2),
[chatMessageAuthorClassNameSelector]: screenReaderContainerStyles,
[chatMessageTimestampClassNameSelector]: screenReaderContainerStyles,
}),
marginBottom: 0,
paddingBottom: 0,
}),

gutter: ({ props: p, variables: v }): ICSSInJSStyle => ({
Expand Down