Skip to content

Commit

Permalink
Fixed invalid 'cursor: hand' CSS property
Browse files Browse the repository at this point in the history
  • Loading branch information
skoehler47 authored and emweb committed Jun 23, 2022
1 parent 08e24b6 commit f5b535e
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 44 deletions.
2 changes: 1 addition & 1 deletion examples/blog/css/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

.link {
text-decoration: underline;
cursor: pointer; cursor: hand;
cursor: pointer;
}

.invalid {
Expand Down
4 changes: 2 additions & 2 deletions examples/composer/composer.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body, td, button {
}

.option {
cursor: pointer; cursor: hand;
cursor: pointer;
color: blue;
font-size: smaller;
text-decoration: underline;
Expand Down Expand Up @@ -50,7 +50,7 @@ button.default {
}

.remove {
cursor: pointer; cursor: hand;
cursor: pointer;
color: blue;
font-size: x-small;
text-decoration: underline;
Expand Down
1 change: 0 additions & 1 deletion examples/feature/auth1/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ body {

.Wt-auth-icon {
cursor: pointer;
cursor: hand;
padding-left: 4px;
padding-right: 4px;
}
Expand Down
1 change: 0 additions & 1 deletion examples/feature/auth2/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ body {

.Wt-auth-icon {
cursor: pointer;
cursor: hand;
padding-left: 4px;
padding-right: 4px;
}
1 change: 0 additions & 1 deletion examples/feature/saml/css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.Wt-auth-icon {
cursor: pointer;
cursor: hand;
}
2 changes: 1 addition & 1 deletion examples/filetreetable/filetree.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
}

.treenodelabel {
cursor:pointer;cursor:hand;
cursor:pointer;
}

.selected {
Expand Down
1 change: 0 additions & 1 deletion examples/qrlogin/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ body {

.Wt-auth-icon {
cursor: pointer;
cursor: hand;
}
2 changes: 1 addition & 1 deletion examples/widgetgallery/docroot/style/everywidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ span.doc a:hover {
span.reactive {
display: block;
background-color: #CCCCCC;
cursor: pointer;cursor:hand;
cursor: pointer;
margin: 3px 0px;
}

Expand Down
2 changes: 1 addition & 1 deletion resources/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

.Wt-form .Wt-buttons span {
text-decoration: underline;
cursor: pointer; cursor: hand;
cursor: pointer;
}

.Wt-form .Wt-error {
Expand Down
13 changes: 6 additions & 7 deletions resources/themes/default/wt.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
}

.Wt-cal caption select {
cursor: pointer; cursor: hand;
cursor: pointer;
margin: 2px 0px;
vertical-align: middle;
}

.Wt-cal-navbutton {
color: #FFFFFF;
background-color:#6699CC;
cursor: pointer; cursor: hand;
cursor: pointer;
margin: 3px;
vertical-align: middle;
display: block;
Expand Down Expand Up @@ -162,7 +162,7 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
color: #003DB8;
border-right: 1px solid #E0E0E0;
border-bottom: 1px solid #E0E0E0;
cursor: pointer; cursor: hand;
cursor: pointer;
text-align: center;
}

Expand Down Expand Up @@ -525,12 +525,12 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
}

.Wt-slider-h .handle {
cursor: pointer; cursor: hand;
cursor: pointer;
background: url(slider-thumb-h.gif) no-repeat scroll center bottom;
}

.Wt-slider-v .handle {
cursor: pointer; cursor: hand;
cursor: pointer;
background: url(slider-thumb-v.gif) no-repeat scroll right center;
}

Expand Down Expand Up @@ -629,7 +629,7 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
background: transparent url(../../tab_r.gif) no-repeat scroll right top;
border-bottom:1px solid #84B0C7;
float:left; display:block;
cursor:pointer;cursor:hand;
cursor:pointer;
font-size: small; font-weight: bold;
}

Expand Down Expand Up @@ -850,7 +850,6 @@ body.Wt-rtl .Wt-itemview div.Wt-tv-no-rh {
height: 16px;
padding-bottom: 6px;
cursor: pointer;
cursor:hand;
}

.Wt-itemview .Wt-disabled .Wt-tv-sh {
Expand Down
14 changes: 7 additions & 7 deletions resources/themes/polished/wt.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
}

.Wt-cal-navbutton {
cursor: pointer; cursor: hand;
cursor: pointer;
font: bold 20px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
vertical-align: middle;
display: block;
}

.Wt-cal caption select {
cursor: pointer; cursor: hand;
cursor: pointer;
font: 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
margin: 2px 0px;
vertical-align: middle;
Expand Down Expand Up @@ -476,7 +476,7 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
.Wt-btn {
background: transparent url(gradient.png) repeat-x scroll 0 0;
border: 1px outset #CCC;
cursor: pointer; cursor: hand;
cursor: pointer;
font-size: small;
margin: 0px 2px;
padding: 2px 5px;
Expand Down Expand Up @@ -566,12 +566,12 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
}

.Wt-slider-h .handle {
cursor: pointer; cursor: hand;
cursor: pointer;
background: url(slider-thumb.png) no-repeat scroll center;
}

.Wt-slider-v .handle {
cursor: pointer; cursor: hand;
cursor: pointer;
background: url(slider-thumb.png) no-repeat scroll center;
}

Expand Down Expand Up @@ -698,7 +698,7 @@ span.Wt-disabled, fieldset.Wt-disabled legend {
}

.Wt-tabs li {
cursor: pointer; cursor: hand;
cursor: pointer;
display: block;
white-space: nowrap;
float: left;
Expand Down Expand Up @@ -910,7 +910,7 @@ body.Wt-rtl .Wt-itemview .Wt-tv-no-rh {
width: 16px;
height: 16px;
padding-bottom: 6px;
cursor: pointer; cursor: hand;
cursor: pointer;
}

.Wt-itemview .Wt-disabled .Wt-tv-sh {
Expand Down
2 changes: 1 addition & 1 deletion src/Wt/WApplication.C
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ WApplication::WApplication(const WEnvironment& env
"margin: 0px;"
"padding: 0px;"
"font: inherit; "
"cursor: pointer; cursor: hand;"
"cursor: pointer;"
"background: transparent;"
"text-decoration: none;"
"color: inherit;");
Expand Down
34 changes: 15 additions & 19 deletions src/web/DomElement.C
Original file line number Diff line number Diff line change
Expand Up @@ -696,27 +696,23 @@ std::string DomElement::cssStyle() const
styleProperty = &j->second;
else if ((p >= static_cast<unsigned int>(Property::StylePosition)) &&
(p < static_cast<unsigned int>(Property::LastPlusOne))) {
if ((j->first == Property::StyleCursor) && (j->second == "pointer")) {
style << "cursor:pointer;cursor:hand;";
} else {
if (!j->second.empty()) {
if (!j->second.empty()) {
style << cssNames_[p -
static_cast<unsigned int>(Property::StylePosition)]
<< ':' << j->second << ';';
if (p >= static_cast<unsigned int>(Property::StyleBoxSizing)) {
WApplication *app = WApplication::instance();

if (app) {
if (app->environment().agentIsGecko())
style << "-moz-";
else if (app->environment().agentIsWebKit())
style << "-webkit-";
}

style << cssNames_[p -
static_cast<unsigned int>(Property::StylePosition)]
static_cast<unsigned int>(Property::StylePosition)]
<< ':' << j->second << ';';
if (p >= static_cast<unsigned int>(Property::StyleBoxSizing)) {
WApplication *app = WApplication::instance();

if (app) {
if (app->environment().agentIsGecko())
style << "-moz-";
else if (app->environment().agentIsWebKit())
style << "-webkit-";
}

style << cssNames_[p -
static_cast<unsigned int>(Property::StylePosition)]
<< ':' << j->second << ';';
}
}
}
} else if (j->first == Property::StyleWidthExpression) {
Expand Down

0 comments on commit f5b535e

Please sign in to comment.