Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(sqllab): update table count styling #15200

Merged
merged 3 commits into from
Jun 24, 2021
Merged

Conversation

stellalc7
Copy link
Contributor

SUMMARY

removed italics, and change opacity in table count text

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE
image

AFTER
Screenshot 2021-06-16 at 14 18 27

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #15200 (e04b898) into master (7dc0cee) will decrease coverage by 0.22%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15200      +/-   ##
==========================================
- Coverage   77.40%   77.17%   -0.23%     
==========================================
  Files         969      971       +2     
  Lines       50013    50291     +278     
  Branches     6431     6140     -291     
==========================================
+ Hits        38712    38814     +102     
- Misses      11098    11273     +175     
- Partials      203      204       +1     
Flag Coverage Δ
javascript 71.80% <100.00%> (-0.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...et-frontend/src/components/TableSelector/index.tsx 85.03% <100.00%> (+0.11%) ⬆️
superset-frontend/src/components/Select/utils.ts 66.66% <0.00%> (-27.46%) ⬇️
...nfigModal/FiltersConfigForm/CollapsibleControl.tsx 91.30% <0.00%> (-8.70%) ⬇️
...ters/FiltersConfigModal/FiltersConfigForm/state.ts 96.66% <0.00%> (-3.34%) ⬇️
...tend/src/SqlLab/components/SouthPane/SouthPane.tsx 78.26% <0.00%> (-1.29%) ⬇️
...d/components/DashboardBuilder/DashboardBuilder.tsx 89.89% <0.00%> (-1.13%) ⬇️
superset-frontend/src/SqlLab/reducers/sqlLab.js 34.12% <0.00%> (-0.84%) ⬇️
...nents/nativeFilters/FilterBar/FilterSets/index.tsx 46.46% <0.00%> (-0.54%) ⬇️
...board/components/nativeFilters/FilterBar/index.tsx 90.42% <0.00%> (-0.30%) ⬇️
superset-frontend/src/views/CRUD/hooks.ts 53.02% <0.00%> (ø)
... and 22 more

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 7dc0cee...e04b898. Read the comment docs.

@@ -78,6 +78,10 @@ const TableLabel = styled.span`
}
`;

const smallColor = css`
color: rgba(102, 102, 102, 0.7);
Copy link
Member

@AAfghahi AAfghahi Jun 16, 2021

Choose a reason for hiding this comment

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

@lyndsiWilliams do we have anything in supersetTheme with lower opacity?

Copy link
Member

Choose a reason for hiding this comment

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

ah yeah, I think you should format it like this:
https://github.com/apache/superset/blob/pexdax/db-connection-ui/superset-frontend/src/views/CRUD/data/database/DatabaseModal/styles.ts#L46 (above that there is one that uses theme and css).

Instead of grayscale.base try grayscale.light1? (play around with it).

Copy link
Member

Choose a reason for hiding this comment

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

I think colors.text.help will be the next lightest color.

Copy link
Member

Choose a reason for hiding this comment

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

{tableOptions.length} in
<i>{schema}</i>
<small css={smallColor}>
{tableOptions.length} {t(' ')} in {schema}
Copy link
Member

Choose a reason for hiding this comment

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

you don't need to wrap the space in the translate function t(' ')

Copy link
Member

@eschutho eschutho Jun 16, 2021

Choose a reason for hiding this comment

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

actually since they're on the same line now, you should be able to use a normal space without the string literal {' '}.
{tableOptions.length} in {schema}

@eschutho
Copy link
Member

Thanks @stellalc7 for this fix!

@AAfghahi
Copy link
Member

@yousoph what are your thoughts?

@stellalc7
Copy link
Contributor Author

I deleted the string literal {' '}, and used the theme.colors.grayscale.light1 - here is the updated screenshot!
Screenshot 2021-06-17 at 11 38 06

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

Looks great, thanks you!

@yousoph
Copy link
Member

yousoph commented Jun 17, 2021

Nice, thanks @stellalc7 !

@hughhhh hughhhh merged commit 680b447 into apache:master Jun 24, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* Change text style and opacity

* Edit changes to text style and opacity for table length

* Edit changes to text style and opacity
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* Change text style and opacity

* Edit changes to text style and opacity for table length

* Edit changes to text style and opacity
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* Change text style and opacity

* Edit changes to text style and opacity for table length

* Edit changes to text style and opacity
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants