Skip to content

Commit

Permalink
Tabs: Updated references to .ui-tabs-selected to use .ui-tabs-active.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Apr 11, 2011
1 parent 08b6a2b commit ccac8cd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions demos/demos.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ div.demo-description {
#widget-docs .ui-tabs-nav li a:hover,
#widget-docs .ui-tabs-nav li a:active { font-size:14px; padding:4px 1.2em 3px; color:#fff; }

#widget-docs .ui-tabs-nav li.ui-tabs-selected a:link,
#widget-docs .ui-tabs-nav li.ui-tabs-selected a:visited,
#widget-docs .ui-tabs-nav li.ui-tabs-selected a:hover,
#widget-docs .ui-tabs-nav li.ui-tabs-selected a:active { color:#e6820E; }
#widget-docs .ui-tabs-nav li.ui-tabs-active a:link,
#widget-docs .ui-tabs-nav li.ui-tabs-active a:visited,
#widget-docs .ui-tabs-nav li.ui-tabs-active a:hover,
#widget-docs .ui-tabs-nav li.ui-tabs-active a:active { color:#e6820E; }

#widget-docs .ui-tabs-panel { padding:20px 9px; font-size:12px; line-height:1.4; color:#000; }

Expand Down
1 change: 0 additions & 1 deletion demos/tabs/bottom.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
.tabs-bottom .ui-tabs-panel { height: 140px; overflow: auto; }
.tabs-bottom .ui-tabs-nav { position: absolute !important; left: 0; bottom: 0; right:0; padding: 0 0.2em 0.2em 0; }
.tabs-bottom .ui-tabs-nav li { margin-top: -2px !important; margin-bottom: 1px !important; border-top: none; border-bottom-width: 1px; }
.ui-tabs-selected { margin-top: -3px !important; }
</style>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion demos/tabs/vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }
.ui-tabs-vertical .ui-tabs-nav li a { display:block; }
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}
</style>
</head>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tabs/tabs_deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ test('selected', function() {
el.tabs('destroy');
el = $('#tabs1').tabs({ selected: -1 });
equals(el.tabs('option', 'selected'), -1, 'should be -1 for all tabs unselected');
equals( $('li.ui-tabs-selected', el).length, 0, 'no tab should be selected' );
equals( $('li.ui-tabs-active', el).length, 0, 'no tab should be selected' );
equals( $('div:hidden', '#tabs1').length, 3, 'all panels should be hidden' );

el.tabs('destroy');
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tabs/tabs_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('active', function() {
el.tabs('destroy');
el.tabs({ active: false });
equals(el.tabs('option', 'active'), false, 'should be false for all tabs deactive');
equals( $('li.ui-tabs-selected', el).length, 0, 'no tab should be active' );
equals( $('li.ui-tabs-active', el).length, 0, 'no tab should be active' );
equals( $('div:hidden', '#tabs1').length, 3, 'all panels should be hidden' );

el.tabs('destroy');
Expand Down

0 comments on commit ccac8cd

Please sign in to comment.