2016-10-19 21 views
0

將我的NativeScript版本升級到最新版本後,我的警報和對話框按鈕呈白色。 請幫我找回原來的黑色...如何在NativeScript中設置對話框樣式?

var dialogs = require("ui/dialogs"); 
 
\t dialogs.alert({ 
 
\t title: "Be Aware", 
 
\t message: "Make sure you receive money from the customer before you REDEEM.", 
 
\t okButtonText: "Customer Paid" 
 
\t }).then(function() { 
 
\t console.log("Dialog closed!"); 
 
\t });

Customer Paid button is white

+0

檢查你的CSS文件或在你的CSS中添加一個新的屬性,使它變成白色...... – Weedoze

+0

如何更改顏色變回黑色? – ThabangTG

+0

@weedoze我也在CSS中試過這個:'alert {color:#000000}'但沒有任何改變。 – ThabangTG

回答

0

該解決方案在評論中發現。

該問題與爲其他按鈕生成的CSS屬性相關聯。

此屬性也影響模式中的按鈕。

解決方案

使用另一個類/ ID /選擇的模式的按鈕

OR

使用相同的選擇比其他按鈕,將裏面的CSS