Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Release/v35.0.0 (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielagabriel authored Jul 1, 2020
1 parent 40add3f commit a20380d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 34 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Unreleased

- [...]

# v35.0.0 (01/07/2020)

- **[BREAKING CHANGE]** `Item`: `leftTitle` attribute can receive `string` or `node`
- **[NEW]** Introducing `ItemBigData` component
- **[FIX]** Use `stroke` for disabled icons
- **[FIX]** Use `stroke` for `disabled` icons
- **[UPDATE]** `RideAxis` alignment polish: when text goes from 1 to 2 lines.
- **[UPDATE]** `MessagingItemSummary` with `RideAxis`

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blablacar/ui-library",
"version": "34.5.1",
"version": "0.0.0-517fafe7",
"description": "BlaBlaCar React UI component library",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
15 changes: 5 additions & 10 deletions src/_utils/rideAxis/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@ import styled from 'styled-components'
import { ArrowIcon } from '../../icon'
import { space } from '../branding'

const StyledRideAxis = styled.span`
display: inline-flex;
align-items: self-start;
> span {
flex: 1;
}
`
const StyledRideAxis = styled.span``

const StyledArrowIcon = styled(ArrowIcon)`
& {
display: inline-block;
/* hack: optical alignment since the icon isn't centered on the viewport */
padding: 0.1em 0 0;
margin: 0 ${space.m};
height: 1em;
width: 1em;
height: 0.9em;
width: 0.9em;
flex-shrink: 0;
flex-grow: 0;
}
Expand Down
2 changes: 2 additions & 0 deletions src/messagingSummaryItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { MessagingSummaryItem } from './MessagingSummaryItem'
const StyledMessagingSummaryItem = styled(MessagingSummaryItem)`
& .kirk-messaging-summary-item-sub-label {
display: flex;
word-break: break-word;
/* Truncate sublabel to max 2 lines. */
max-height: 2.5em;
overflow: hidden;
Expand Down
26 changes: 5 additions & 21 deletions src/searchRecap/__snapshots__/SearchRecap.unit.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,11 @@ exports[`searchRecap Should display searchRecap component 1`] = `
}
.c3 {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-align-items: self-start;
-webkit-box-align: self-start;
-ms-flex-align: self-start;
align-items: self-start;
}
.c3 > span {
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.c4 {
display: inline-block;
padding: 0.1em 0 0;
margin: 0 8px;
height: 1em;
width: 1em;
height: 0.9em;
width: 0.9em;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
Expand Down Expand Up @@ -195,14 +179,14 @@ exports[`searchRecap Should display searchRecap component 1`] = `
}
>
<span
className="c3"
className=""
>
<span>
Middlesbrough
</span>
<svg
aria-hidden={true}
className="kirk-icon c4 c1"
className="kirk-icon c3 c1"
height={24}
viewBox="0 0 24 24"
width={24}
Expand Down

0 comments on commit a20380d

Please sign in to comment.