-
-
Notifications
You must be signed in to change notification settings - Fork 832
Conversation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Looks pretty nifty 👍. The social icons seem pretty arbitrary and feel like they'd be nicer as config options, or at least make them configurable. |
@@ -16,7 +16,7 @@ limitations under the License. | |||
|
|||
.mx_ContextualMenu_wrapper { | |||
position: fixed; | |||
z-index: 2000; | |||
z-index: 5000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the Modal sits at Z 4000
so it needs to be higher
@@ -1,5 +1,6 @@ | |||
/* | |||
Copyright 2015, 2016 OpenMarket Ltd | |||
Copyright 2018 Vector Creations Ltd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're New Vector now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -1295,10 +1303,13 @@ module.exports = React.createClass({ | |||
|
|||
<div className="mx_UserSettings_section"> | |||
<div className="mx_UserSettings_advanced"> | |||
{ _t("Logged in as:") } { this._me } | |||
{ _t("Logged in as:") + ' ' } | |||
<span onClick={this.onSelfShareClick} className="mx_UserSettings_link"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't put onClicks on spans: it's styled to look like a link on the screen, but to people using a screen reader this is just text. A thing that causes a dialog to pop up when you click on it is a button, or failing that, a hyperlink.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,211 @@ | |||
/* | |||
Copyright 2018 Vector Creations Ltd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New Vector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
img: 'img/social/', | ||
url: (url) => `https://plus.google.com/share?url=${url}`, | ||
},*/ { | ||
name: 'Linked In', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no space in LinkedIn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
this.onCheckboxClick = this.onCheckboxClick.bind(this); | ||
|
||
this.state = { | ||
ticked: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is ticked? The whole dialog?
e.target.onmouseleave = close; | ||
} | ||
|
||
onCheckboxClick() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per 'ticked', some name suggestive of what the checkbox is for would be nice.
|
||
<div className="mx_ShareDialog_split"> | ||
<div className="mx_ShareDialog_left"> | ||
<h3>QR Code</h3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd argue that if you know how to use a QR code, you probably don't need to be told that this is one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you want to see the "QR Code" and "Social" headers disappear? or just one and have it lobsided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbkr whatcha think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I would say remove both - that lgtm. @lampholder ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(He say yes)
<h3>Social</h3> | ||
<div className="mx_ShareDialog_social_container"> | ||
{ | ||
socials.map((social) => <a target="_blank" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rel="noopener"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
href={social.url(encodedUrl)} | ||
className="mx_ShareDialog_social_icon" | ||
> | ||
<img src={social.img} height={64} width={64} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt={social.name} surely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
fix copyright headers fix user settings link accessibility fix typo and add noopener Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@dbkr PTAL |
Implements a share dialog for users rooms and groups
fixes ContextMenu such that it can overlay modals if needed
fixes BaseDialog and a typo in a Dialog
specs some more PropTypes which were previously used but not specified
Requires matrix-org/matrix-js-sdk#656Fixes element-hq/element-web#877
Fixes element-hq/element-web#2943