Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Style functions in outline view#3128

Merged
codehag merged 2 commits into
firefox-devtools:masterfrom
amelzer:outline/style-functions
Jun 12, 2017
Merged

Style functions in outline view#3128
codehag merged 2 commits into
firefox-devtools:masterfrom
amelzer:outline/style-functions

Conversation

@amelzer

@amelzer amelzer commented Jun 8, 2017

Copy link
Copy Markdown
Contributor

Associated Issue: #2901

Summary of Changes

  • Removed bullet points and decreased left padding for functions in outline view
  • Added pointer and hover effect to functions in outline view

Test Plan

  • Hover over functions in outline view changes background according to theme

Screenshots/Videos (OPTIONAL)

outlinefunctions

@codecov

codecov Bot commented Jun 8, 2017

Copy link
Copy Markdown

Codecov Report

Merging #3128 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3128   +/-   ##
=======================================
  Coverage   47.51%   47.51%           
=======================================
  Files          95       95           
  Lines        4003     4003           
  Branches      821      821           
=======================================
  Hits         1902     1902           
  Misses       2101     2101

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 439ab3f...fdc757b. Read the comment docs.

@jasonLaster

Copy link
Copy Markdown
Contributor

This looks great @amelzer!

My one style critique is that it would be nice to have the hover background be full width. Other than that I think it's ready!

@amelzer

amelzer commented Jun 9, 2017 via email

Copy link
Copy Markdown
Contributor Author

@codehag codehag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @amelzer

I think there is a solution here. The padding in the parent container isn't actually meaningful, and is messing things up (I implemented the bad version 😅, didn't think ahead enough ). What about doing it like this?

diff --git a/src/components/Outline.css b/src/components/Outline.css
index 15ebe5c3..e879e488 100644
--- a/src/components/Outline.css
+++ b/src/components/Outline.css
@@ -1,11 +1,11 @@
 .outline-list {
+  width: 100%;
   list-style-type: none;
+  padding-left: 0px;
-  padding-left: 10px;
 }

 .outline-list__element {
   color: blue;
-  padding-left: 0.5rem;
+  padding-left: 1rem;
   padding-right: 0.5rem;
   cursor: pointer;
 }

@@ -1,8 +1,15 @@
.outline-list {
list-style-type: "-";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codehag

codehag commented Jun 12, 2017

Copy link
Copy Markdown
Contributor

Also, it looks like our ul element is set by default to have a padding of 40px. I wonder if we want to do that, or if we should normalize it 🤔 . Didn't have a chance to investigate, maybe this style is coming from somewhere? I don't think we are using it anywhere though so its a bit strange, and we are overriding it else where too..

@amelzer

amelzer commented Jun 12, 2017

Copy link
Copy Markdown
Contributor Author

@codehag The 40px ul padding seems to be browser default.

Thank you for your other suggestions, it does look quite nice now.
outlinefunctionsv2

@codehag

codehag commented Jun 12, 2017

Copy link
Copy Markdown
Contributor

Looks great! Thanks for your hard work!

@codehag codehag merged commit d64b1a8 into firefox-devtools:master Jun 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants