Skip to content

Commit

Permalink
ui fixes (#122)
Browse files Browse the repository at this point in the history
* editable list styling fix

* copy to clipboard fix

* Table cell level styling

* build and bump new version
  • Loading branch information
jay-deshmukh authored May 7, 2020
1 parent bceda3d commit 1f3dc37
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/sass/components/EditableList/sass/EditableList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@

.tyk-editable-list-item__text {
display: block;
word-wrap: break-word;
word-break:break-all;
}

.tyk-editable-list-action__button {
Expand Down
2 changes: 1 addition & 1 deletion lib/tyk-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/CopyToClipboard/js/CopyToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const CopyToClipboard = (props) => {
{children || display}
</props.element>
{!window.navigator.clipboard ? (
<textarea ref={txtRef} className="tyk-copy-to-clipboard" name="copy">
<textarea ref={txtRef} className="tyk-copy-to-clipboard" name="copy" value={copy}>
{copy}
</textarea>
) : null}
Expand Down
2 changes: 2 additions & 0 deletions src/components/EditableList/sass/EditableList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@

.tyk-editable-list-item__text {
display: block;
word-wrap: break-word;
word-break:break-all;
}

.tyk-editable-list-action__button {
Expand Down
5 changes: 4 additions & 1 deletion src/components/Table/js/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export const Cell = ({ col, row }) => {
if (col.type === 'string') {
return (
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
<td {...row?.values[col.id]?.events}>
<td
className={row.values[col.id].styling?.className || null}
{...row?.values[col.id]?.events}
>
{row.values[col.id]?.value}
</td>
);
Expand Down

0 comments on commit 1f3dc37

Please sign in to comment.