From b43aa7f2f6db3648fd44a8c202fcc4a842b5edc4 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 23 Oct 2017 21:57:59 -0700 Subject: [PATCH 1/3] Fixed anchor style and removed unused styles --- frontend/components/Editor/Editor.js | 16 ---------------- frontend/components/Editor/components/Heading.js | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/frontend/components/Editor/Editor.js b/frontend/components/Editor/Editor.js index 659cb4b20..14013f46b 100644 --- a/frontend/components/Editor/Editor.js +++ b/frontend/components/Editor/Editor.js @@ -246,22 +246,6 @@ const StyledEditor = styled(Editor)` h5, h6 { font-weight: 500; - - .anchor { - visibility: hidden; - color: #dedede; - padding-left: 0.25em; - } - - &:hover { - .anchor { - visibility: visible; - - &:hover { - color: #cdcdcd; - } - } - } } h1:first-of-type { diff --git a/frontend/components/Editor/components/Heading.js b/frontend/components/Editor/components/Heading.js index c8ceb4464..a107a30a6 100644 --- a/frontend/components/Editor/components/Heading.js +++ b/frontend/components/Editor/components/Heading.js @@ -72,6 +72,7 @@ export const Heading1 = styled(Heading)` &:hover { ${Anchor} { visibility: visible; + text-decoration: none; } } `; From 7c3be91556134fc9583387014ee6bb2b3d69393a Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 23 Oct 2017 22:00:24 -0700 Subject: [PATCH 2/3] adjusted `code` size --- frontend/styles/base.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/styles/base.css b/frontend/styles/base.css index 711104aa5..ec8a87f07 100644 --- a/frontend/styles/base.css +++ b/frontend/styles/base.css @@ -101,11 +101,11 @@ samp { } code, samp { - font-size: 87.5%; + font-size: 85%; padding: 0.125em; } pre { - font-size: 87.5%; + font-size: 85%; overflow: scroll; } blockquote { From 87b3bcba614d0fbb2dd5f38b7e5ec43db4b1cbc6 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 24 Oct 2017 00:08:14 -0700 Subject: [PATCH 3/3] Quick fix for #367 --- frontend/components/Editor/insertImage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/components/Editor/insertImage.js b/frontend/components/Editor/insertImage.js index 7f59ab5ce..d3e4c6bd7 100644 --- a/frontend/components/Editor/insertImage.js +++ b/frontend/components/Editor/insertImage.js @@ -15,6 +15,7 @@ export default async function insertImageFile( try { // load the file as a data URL const id = uuid.v4(); + const alt = ''; const reader = new FileReader(); reader.addEventListener('load', () => { const src = reader.result; @@ -24,7 +25,7 @@ export default async function insertImageFile( .insertBlock({ type: 'image', isVoid: true, - data: { src, id, loading: true }, + data: { src, id, alt, loading: true }, }) .apply(); editor.onChange(state); @@ -45,7 +46,7 @@ export default async function insertImageFile( ); return finalTransform.setNodeByKey(placeholder.key, { - data: { src, loading: false }, + data: { src, alt, loading: false }, }); } catch (err) { throw err;