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

Student Scores: adds tooltips, ellipsis and scale/wrap to tabs #980

Merged
merged 4 commits into from
Feb 23, 2016

Conversation

darrenmason
Copy link
Contributor

tab-truncate

regarding task: https://www.pivotaltracker.com/story/show/112365737

added tooltips, ellipsis and scale/wrap to tabs to allow for longer names and more periods

@philschatz
Copy link
Member

Is the tab width (and ellipses) not possible using just CSS?

@philschatz
Copy link
Member

For example, something like:

.period-tab {
  display: inline-block;
  max-width: 100px;
  overflow-x: hidden;
  text-overflow: ellipses;

  white-space: nowrap;
}

Otherwise, can you add tests?

@philschatz philschatz changed the title added tooltips, ellipsis and scale/wrap to tabs Student Scores: adds tooltips, ellipsis and scale/wrap to tabs Feb 22, 2016
@@ -80,6 +82,14 @@
a {
font-weight: 400;
color: @tutor-neutral !important;
span {
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a class to this element so it is not selecting span? Maybe react-bootstrap does not have an easy way to do this though

philschatz added a commit that referenced this pull request Feb 23, 2016
Student Scores: adds tooltips, ellipsis and scale/wrap to tabs
@philschatz philschatz merged commit c858acd into master Feb 23, 2016
@philschatz philschatz deleted the fix/period-tab-ellipsis-tooltip branch February 23, 2016 01:02
li {
display: flex;
flex-wrap: wrap;
li.tab-item-period {
text-align: center;
Copy link
Member

Choose a reason for hiding this comment

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

tutor-nav-tabs are used on other things than periods. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants